/// <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; }
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)); } }
/// <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); }
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))))))); } }
/// <summary> /// Observed inputs data is discovered. /// </summary> public virtual void ObservedInputs(ObservedInputsEventData data) { OnUnhandledEvent(ExecutionEventId.ObservedInputs); }
public bool VerifyEquals(ObservedInputsEventData expected, ObservedInputsEventData actual) { XAssert.AreEqual(expected.PipId, actual.PipId); return(VerifyEquals(expected.ObservedInputs, actual.ObservedInputs)); }
public override void ObservedInputs(ObservedInputsEventData data) { VerifyEvent(data); }
public override void ObservedInputs(ObservedInputsEventData data) { m_observedInputs[data.PipId] = new List <AbsolutePath>(data.ObservedInputs.Where(oi => !oi.IsDirectoryPath).Select(oi => oi.Path).Distinct()); }