added REST API and simple unit test - and compose starter, still WIP for integ test
This commit is contained in:
17
main_test.go
17
main_test.go
@@ -1,16 +1 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func TestHelloWorld(t *testing.T) {
|
||||
if HelloWorld() != "hello world" {
|
||||
t.Errorf("got %s expected %s", HelloWorld(), "hello world")
|
||||
}
|
||||
}
|
||||
package main_test
|
||||
|
||||
Reference in New Issue
Block a user