Exemplo n.º 1
0
 /// <inheritdoc />
 public override void ObservedInputs(ObservedInputsEventData data)
 {
     // Observed inputs are processed twice: once for the cache lookup and once when the process is run. If the strong
     // fingerprint misses, it is possible for the same pip to log input assertions twice. They will be the same
     // so we can just pick the last one
     m_observedInputsMap[data.PipId] = data.ObservedInputs;
 }
Exemplo n.º 2
0
 public override void ObservedInputs(ObservedInputsEventData data)
 {
     if (!TargetPipId.HasValue || data.PipId == TargetPipId)
     {
         m_observedInputs[data.PipId.Value] = new HashSet <AbsolutePath>(data.ObservedInputs.Where(oi => !oi.IsDirectoryPath).Select(oi => oi.Path));
     }
 }
Exemplo n.º 3
0
        /// <inheritdoc />
        public override void ObservedInputs(ObservedInputsEventData data)
        {
            // Observed inputs are processed twice: once for the cache lookup and once when the process is run. If the strong
            // fingerprint misses, it is possible for the same pip to log input assertions twice. They will be the same
            // so we can just pick the last one
            List <ReadOnlyArray <ObservedInput> > inputs;

            if (!m_observedInputsMap.TryGetValue(data.PipId, out inputs))
            {
                inputs = new List <ReadOnlyArray <ObservedInput> >();
                m_observedInputsMap.Add(data.PipId, inputs);
            }

            inputs.Add(data.ObservedInputs);
        }
Exemplo n.º 4
0
 public override void ObservedInputs(ObservedInputsEventData data)
 {
     if (data.PipId == m_pip.PipId)
     {
         m_sections.Add(
             m_html.CreateBlock(
                 "Observed Inputs",
                 m_html.CreateRow(
                     "Observed Inputs",
                     new XElement(
                         "div",
                         data.ObservedInputs.Select(
                             oi =>
                             new XElement(
                                 "div",
                                 new XAttribute("class", "miniGroup"),
                                 m_html.CreateRow("Path", oi.Path),
                                 m_html.CreateEnumRow("Type", oi.Type),
                                 m_html.CreateRow("Hash", oi.Hash.ToHex()),
                                 m_html.CreateRow("IsSearchpath", oi.IsSearchPath),
                                 m_html.CreateRow("IsDirectoryPath", oi.IsDirectoryPath),
                                 m_html.CreateRow("DirectoryEnumeration", oi.DirectoryEnumeration)))))));
     }
 }
Exemplo n.º 5
0
 /// <summary>
 ///  Observed inputs data is discovered.
 /// </summary>
 public virtual void ObservedInputs(ObservedInputsEventData data)
 {
     OnUnhandledEvent(ExecutionEventId.ObservedInputs);
 }
Exemplo n.º 6
0
            public bool VerifyEquals(ObservedInputsEventData expected, ObservedInputsEventData actual)
            {
                XAssert.AreEqual(expected.PipId, actual.PipId);

                return(VerifyEquals(expected.ObservedInputs, actual.ObservedInputs));
            }
Exemplo n.º 7
0
 public override void ObservedInputs(ObservedInputsEventData data)
 {
     VerifyEvent(data);
 }
Exemplo n.º 8
0
 public override void ObservedInputs(ObservedInputsEventData data)
 {
     m_observedInputs[data.PipId] = new List <AbsolutePath>(data.ObservedInputs.Where(oi => !oi.IsDirectoryPath).Select(oi => oi.Path).Distinct());
 }