diff options
author | EuAndreh <eu@euandre.org> | 2024-09-02 11:03:10 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-09-12 12:06:36 -0300 |
commit | 72a43414fe6b6451d0587ad29d65129b4782a3b7 (patch) | |
tree | c795625415a0cc5b0f1a30a95b4bf465bd92b866 /tests | |
parent | Initial empty commit (diff) | |
download | fiinha-72a43414fe6b6451d0587ad29d65129b4782a3b7.tar.gz fiinha-72a43414fe6b6451d0587ad29d65129b4782a3b7.tar.xz |
Init Go project skeleton with golite init
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cli-opts.sh | 4 | ||||
-rwxr-xr-x | tests/integration.sh | 4 | ||||
-rw-r--r-- | tests/liteq.go | 35 | ||||
-rw-r--r-- | tests/main.go | 7 |
4 files changed, 50 insertions, 0 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh new file mode 100755 index 0000000..fcb62ca --- /dev/null +++ b/tests/cli-opts.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +exit diff --git a/tests/integration.sh b/tests/integration.sh new file mode 100755 index 0000000..fcb62ca --- /dev/null +++ b/tests/integration.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +exit diff --git a/tests/liteq.go b/tests/liteq.go new file mode 100644 index 0000000..86d1bef --- /dev/null +++ b/tests/liteq.go @@ -0,0 +1,35 @@ +package q + +import ( + "os" + "testing" + "testing/internal/testdeps" + + g "gobang" +) + + + +func TestX(t *testing.T) { + g.AssertEqual(1, 1) +} + + + +func MainTest() { + tests := []testing.InternalTest { + { "TestX", TestX }, + } + + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget {} + examples := []testing.InternalExample {} + m := testing.MainStart( + testdeps.TestDeps {}, + tests, + benchmarks, + fuzzTargets, + examples, + ) + os.Exit(m.Run()) +} diff --git a/tests/main.go b/tests/main.go new file mode 100644 index 0000000..893132e --- /dev/null +++ b/tests/main.go @@ -0,0 +1,7 @@ +package main + +import "q" + +func main() { + q.MainTest() +} |