Skip to content

TestFilterChanges

Namespace: E2E

public sealed record TestFilterChanges : IEquatable<TestFilterChanges>

What a run’s test filters judge: every file that differs from the base commit (upstream’s TestFilterChanges).

Inheritance: object

Implements: IEquatable<TestFilterChanges>

View source

TestFilterChanges(string, string, IReadOnlyList<string>)

Section titled “TestFilterChanges(string, string, IReadOnlyList<string>)”
public TestFilterChanges(string Base, string Root, IReadOnlyList<string> Files)

What a run’s test filters judge: every file that differs from the base commit (upstream’s TestFilterChanges).

Parameters

Name Type Description
Base string The commit the change is measured from: the merge base of the base ref and HEAD.
Root string Absolute path of the git repository root, spelled as on disk like ProjectRoot; <code class=“paramref”>Files</code> are relative to it.
Files IReadOnlyList<string> Repository-relative POSIX paths of every file added, modified, or deleted since <code class=“paramref”>Base</code>, both paths of a rename, uncommitted and untracked files included; sorted by code point. Spelled as git prints them, which on macOS is NFC while a test’s File keeps the bytes on disk, so compare a non-ASCII path in NFC on both sides.

View source

public string Base { get; init; }

The commit the change is measured from: the merge base of the base ref and HEAD.

Value: string

View source

public IReadOnlyList<string> Files { get; init; }

Repository-relative POSIX paths of every file added, modified, or deleted since <code class=“paramref”>Base</code>, both paths of a rename, uncommitted and untracked files included; sorted by code point. Spelled as git prints them, which on macOS is NFC while a test’s File keeps the bytes on disk, so compare a non-ASCII path in NFC on both sides.

Value: IReadOnlyList<string>

View source

public string Root { get; init; }

Absolute path of the git repository root, spelled as on disk like ProjectRoot; <code class=“paramref”>Files</code> are relative to it.

Value: string

View source