forked from urdt/ussd
define build for running online and offline tests
This commit is contained in:
parent
54cc33c819
commit
127219f510
11
internal/testutil/offlinetest.go
Normal file
11
internal/testutil/offlinetest.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// +build !online
|
||||||
|
|
||||||
|
package testutil
|
||||||
|
|
||||||
|
import (
|
||||||
|
"git.grassecon.net/urdt/ussd/internal/handlers/server"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
AccountService server.AccountServiceInterface = &server.TestAccountService{}
|
||||||
|
)
|
9
internal/testutil/onlinetest.go
Normal file
9
internal/testutil/onlinetest.go
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// +build online
|
||||||
|
|
||||||
|
package testutil
|
||||||
|
|
||||||
|
import "git.grassecon.net/urdt/ussd/internal/handlers/server"
|
||||||
|
|
||||||
|
var (
|
||||||
|
AccountService server.AccountServiceInterface
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user