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/compressor | |
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/compressor')
-rw-r--r-- | tests/unit/compressor/compressor.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/unit/compressor/compressor.go b/tests/unit/compressor/compressor.go index 3b760ce..cac6158 100644 --- a/tests/unit/compressor/compressor.go +++ b/tests/unit/compressor/compressor.go @@ -2,9 +2,13 @@ package compressor import ( "fmt" + "os" "testing" + "testing/internal/testdeps" ) + + func TestCompressor_Compress(t *testing.T) { x := 0 // an empty value @@ -121,5 +125,17 @@ func TestCompressor_Compress(t *testing.T) { } } + + func MainTest() { + tests := []testing.InternalTest{ + { "TestCompressor_Compress", TestCompressor_Compress }, + } + + deps := testdeps.TestDeps{} + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) } |