You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor
* add reporting documentation
* docs: document public API of ModVerify.Reporting
Add XML doc comments to the exposed (public) types in
AET.ModVerify.Reporting following dotnet/runtime conventions:
baselines, suppressions, engine error collection, and reporters.
Internal JSON DTOs and concrete reporter implementations are left
undocumented.
* add verifier documentation
* update deps
* update sub and deps
/// <summary>Gets a value that indicates whether the collection contains no baselines.</summary>
22
+
/// <value><see langword="true"/> if the collection contains no baselines; otherwise, <see langword="false"/>.</value>
18
23
publicboolIsEmpty=>_baselines.Count==0;
19
24
25
+
/// <summary>Initializes a new instance of the <see cref="BaselineCollection"/> class with the specified baselines.</summary>
26
+
/// <param name="baselines">The identified baselines to include in the collection.</param>
27
+
/// <exception cref="ArgumentNullException"><paramref name="baselines"/> is <see langword="null"/>.</exception>
28
+
/// <exception cref="ArgumentException">An entry in <paramref name="baselines"/> is <see langword="null"/>, or two entries share the same identifier.</exception>
@@ -35,6 +44,9 @@ public BaselineCollection(IEnumerable<IdentifiedBaseline> baselines)
35
44
_baselines=list;
36
45
}
37
46
47
+
/// <summary>Determines whether any baseline in the collection contains the specified error.</summary>
48
+
/// <param name="error">The verification error to locate.</param>
49
+
/// <returns><see langword="true"/> if a baseline in the collection contains <paramref name="error"/>; otherwise, <see langword="false"/>.</returns>
38
50
publicboolContains(VerificationErrorerror)
39
51
{
40
52
foreach(varentryin_baselines)
@@ -45,6 +57,10 @@ public bool Contains(VerificationError error)
45
57
returnfalse;
46
58
}
47
59
60
+
/// <summary>Gets the identifier of the first baseline in the collection that contains the specified error.</summary>
61
+
/// <param name="error">The verification error to locate.</param>
62
+
/// <param name="identifier">When this method returns, contains the identifier of the matching baseline if a match was found, or <see langword="null"/> if no baseline contains the error. This parameter is treated as uninitialized.</param>
63
+
/// <returns><see langword="true"/> if a baseline containing <paramref name="error"/> was found; otherwise, <see langword="false"/>.</returns>
0 commit comments