12 instantiations of TerminalNodeStatus
Microsoft.Build (4)
Logging\TerminalLogger\TerminalLogger.cs (4)
668
_nodes[nodeIndex] = new
TerminalNodeStatus
(e.ProjectFile!, targetFramework, runtimeIdentifier, "Restore", _projects[c].Stopwatch);
976
TerminalNodeStatus nodeStatus =
new
(projectFile, project.TargetFramework, project.RuntimeIdentifier, targetName, project.Stopwatch);
1115
var status = new
TerminalNodeStatus
(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Green, indicator, displayName, project.Stopwatch);
1125
var status = new
TerminalNodeStatus
(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);
Microsoft.Build.Engine.UnitTests (8)
NodeStatus_SizeChange_Tests.cs (1)
20
private readonly TerminalNodeStatus _status =
new
("Namespace.Project", "TargetFramework", null, "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (7)
32
Func<TerminalNodeStatus> newNodeStatus = () => new
TerminalNodeStatus
("project", "tfm", "rid", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch());
42
new
("Namespace.Project", "TargetFramework", null, "Build", new MockStopwatch())
45
new
("Namespace.Project", "TargetFramework", null, "Testing", new MockStopwatch())
57
TerminalNodeStatus node =
new
("Namespace.Project", "TargetFramework", null, "Build", new TickingStopwatch());
74
new
("Namespace.Project", "TargetFramework", null, "Testing", new MockStopwatch())
77
new
("Namespace.Project", "TargetFramework", null, TerminalColor.Red, "failed", "MyTestName1", new MockStopwatch())
89
TerminalNodeStatus node =
new
("Namespace.Project", "TargetFramework", null, TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch());
21 references to TerminalNodeStatus
Microsoft.Build (15)
Logging\TerminalLogger\TerminalLogger.cs (9)
115
private
TerminalNodeStatus
?[] _nodes = Array.Empty<
TerminalNodeStatus
>();
161
private TerminalNodesFrame _currentFrame = new(Array.Empty<
TerminalNodeStatus
>(), 0, 0);
359
_nodes = new
TerminalNodeStatus
[nodeCount + 1];
976
TerminalNodeStatus
nodeStatus = new(projectFile, project.TargetFramework, project.RuntimeIdentifier, targetName, project.Stopwatch);
981
private void UpdateNodeStatus(BuildEventContext buildEventContext,
TerminalNodeStatus
? nodeStatus)
1103
var
node = _nodes[NodeIndexForContext(buildEventContext)];
1115
var
status = new TerminalNodeStatus(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Green, indicator, displayName, project.Stopwatch);
1125
var
status = new TerminalNodeStatus(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);
Logging\TerminalLogger\TerminalNodesFrame.cs (5)
19
private readonly (
TerminalNodeStatus
nodeStatus, int durationLength)[] _nodes;
27
public TerminalNodesFrame(
TerminalNodeStatus
?[] nodes, int width, int height)
32
_nodes = new (
TerminalNodeStatus
, int)[nodes.Length];
34
foreach (
TerminalNodeStatus
? status in nodes)
45
TerminalNodeStatus
status = _nodes[i].nodeStatus;
Logging\TerminalLogger\TerminalNodeStatus.cs (1)
67
public virtual bool Equals(
TerminalNodeStatus
? other) =>
Microsoft.Build.Engine.UnitTests (6)
NodeStatus_SizeChange_Tests.cs (1)
20
private readonly
TerminalNodeStatus
_status = new("Namespace.Project", "TargetFramework", null, "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (5)
32
Func<
TerminalNodeStatus
> newNodeStatus = () => new TerminalNodeStatus("project", "tfm", "rid", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch());
57
TerminalNodeStatus
node = new("Namespace.Project", "TargetFramework", null, "Build", new TickingStopwatch());
89
TerminalNodeStatus
node = new("Namespace.Project", "TargetFramework", null, TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch());
106
private string Animate(params
TerminalNodeStatus
[][] nodeStatusesUpdates)
111
TerminalNodesFrame previousFrame = new(Array.Empty<
TerminalNodeStatus
>(), 0, 0);