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