Skip to content

Commit d97a4db

Browse files
committed
improve config
1 parent e7dfb85 commit d97a4db

File tree

9 files changed

+4
-7
lines changed

9 files changed

+4
-7
lines changed

.github/workflows/develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
dotnet test --project tests/HydraScript.IntegrationTests `
5757
-c Debug --no-build -v n `
5858
--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml `
59-
--coverage-settings coverage-exclude.xml
59+
--coverage-settings tests/coverage-exclude.xml
6060
mkdir coverage-report
6161
- name: Code Coverage Summary Report For Merge Request
6262
if: github.event_name == 'pull_request'

ExtendedJavaScriptSubset.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<Project Path="tests/HydraScript.Infrastructure.LexerRegexGenerator.UnitTests/HydraScript.Infrastructure.LexerRegexGenerator.UnitTests.csproj" />
5050
<Project Path="tests/HydraScript.IntegrationTests/HydraScript.IntegrationTests.csproj" />
5151
<Project Path="tests/HydraScript.UnitTests/HydraScript.UnitTests.csproj" />
52+
<File Path="tests/coverage-exclude.xml" />
5253
<File Path="tests/Directory.Build.props" />
5354
<File Path="tests/Directory.Packages.props" />
5455
</Folder>

src/Domain/HydraScript.Domain.FrontEnd/Lexer/Impl/Structure.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public TokenType FindByTag(string tag) =>
2323
public IEnumerator<TokenType> GetEnumerator() =>
2424
Types.Values.AsEnumerable().GetEnumerator();
2525

26-
[ExcludeFromCodeCoverage]
2726
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
2827

2928
public int Count => Types.Values.Length;

src/Domain/HydraScript.Domain.IR/Impl/Symbols/FunctionSymbol.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public class FunctionSymbol(
2525
public void DefineReturnType(Type returnType) =>
2626
_returnType = returnType;
2727

28-
[ExcludeFromCodeCoverage]
2928
public override string ToString()
3029
{
3130
using var zsb = ZString.CreateStringBuilder();

src/Domain/HydraScript.Domain.IR/Impl/Symbols/TypeSymbol.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ obj is TypeSymbol typeSymbol &&
1515
public override int GetHashCode() =>
1616
HashCode.Combine(Name, Type);
1717

18-
[ExcludeFromCodeCoverage]
1918
public override string ToString() =>
2019
$"type {Name} = {Type}";
2120
}

src/Domain/HydraScript.Domain.IR/Impl/Symbols/VariableSymbol.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class VariableSymbol(
1515

1616
public void Initialize() => Initialized = true;
1717

18-
[ExcludeFromCodeCoverage]
1918
public override string ToString() =>
2019
$"{(ReadOnly ? "const " : "")}{Name}: {Type}";
2120
}

src/Domain/HydraScript.Domain.IR/Types/CommutativeTypeEqualityComparer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ namespace HydraScript.Domain.IR.Types;
77
public bool Equals(Type? x, Type? y) =>
88
x?.Equals(y) != false || y?.Equals(x) != false;
99

10-
[ExcludeFromCodeCoverage]
1110
public int GetHashCode(Type obj) => obj.GetHashCode();
1211
}

src/Infrastructure/HydraScript.Infrastructure/Dumping/DumpingLexer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ internal class DumpingLexer(
1010
ILexer lexer,
1111
IDumpingService dumpingService) : ILexer
1212
{
13-
[ExcludeFromCodeCoverage]
1413
public IStructure Structure => lexer.Structure;
1514

1615
public IEnumerable<Token> GetTokens(string text)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<Functions>
66
<Exclude>
77
<Function>.*ToString.*</Function>
8+
<Function>.*GetHashCode.*</Function>
9+
<Function>.*GetEnumerator.*</Function>
810
</Exclude>
911
</Functions>
1012

0 commit comments

Comments
 (0)