test(build):collect llgo test ./... output to test
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
package bar
|
||||
|
||||
func Bar() int {
|
||||
return 2
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package bar_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/goplus/llgo/test/bar"
|
||||
)
|
||||
|
||||
func TestBar(t *testing.T) {
|
||||
if bar.Bar() != 2 {
|
||||
t.Fatal("Bar() != 2")
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package barinner
|
||||
|
||||
func BarInner() int {
|
||||
return 2
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package barinner_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/goplus/llgo/test/bar/barinner"
|
||||
)
|
||||
|
||||
func TestBarInner(t *testing.T) {
|
||||
if barinner.BarInner() != 2 {
|
||||
t.Fatal("BarInner() != 2")
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package foo
|
||||
|
||||
func Foo() int {
|
||||
return 1
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package foo_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/goplus/llgo/test/foo"
|
||||
)
|
||||
|
||||
func TestFoo(t *testing.T) {
|
||||
if foo.Foo() != 1 {
|
||||
t.Fatal("Foo() != 1")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user