diff options
author | EuAndreh <eu@euandre.org> | 2024-12-12 11:04:07 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-12-12 11:04:07 -0300 |
commit | 597687f4aea38ef19d12e0fdaf021fa4faba8f02 (patch) | |
tree | e65ffaa7c9fc4f39826c36825e73eb81765add16 /tests/unit/grammar/lexical/parser/parser.go | |
parent | Build and run existing test executables with no actual tests (diff) | |
download | cotia-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.gz cotia-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.xz |
tests/unit/: Actually run existing tests
Diffstat (limited to 'tests/unit/grammar/lexical/parser/parser.go')
-rw-r--r-- | tests/unit/grammar/lexical/parser/parser.go | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/unit/grammar/lexical/parser/parser.go b/tests/unit/grammar/lexical/parser/parser.go index 288de95..f0ce421 100644 --- a/tests/unit/grammar/lexical/parser/parser.go +++ b/tests/unit/grammar/lexical/parser/parser.go @@ -2,14 +2,18 @@ package parser import ( "fmt" + "os" "reflect" "strings" "testing" + "testing/internal/testdeps" spec "urubu/spec/grammar" "urubu/ucd" ) + + func TestLexer(t *testing.T) { tests := []struct { caption string @@ -1907,4 +1911,19 @@ func testAST(t *testing.T, expected, actual CPTree) { } -func MainTest() {} + +func MainTest() { + tests := []testing.InternalTest{ + { "TestLexer", TestLexer }, + { "TestParse", TestParse }, + { "TestParse_ContributoryPropertyIsNotExposed", TestParse_ContributoryPropertyIsNotExposed }, + { "TestExclude", TestExclude }, + } + + deps := testdeps.TestDeps{} + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} |