diff --git a/internal/testutil/offlinetest.go b/internal/testutil/offlinetest.go new file mode 100644 index 0000000..476ade3 --- /dev/null +++ b/internal/testutil/offlinetest.go @@ -0,0 +1,11 @@ +// +build !online + +package testutil + +import ( + "git.grassecon.net/urdt/ussd/internal/handlers/server" +) + +var ( + AccountService server.AccountServiceInterface = &server.TestAccountService{} +) diff --git a/internal/testutil/onlinetest.go b/internal/testutil/onlinetest.go new file mode 100644 index 0000000..ddb5cf0 --- /dev/null +++ b/internal/testutil/onlinetest.go @@ -0,0 +1,9 @@ +// +build online + +package testutil + +import "git.grassecon.net/urdt/ussd/internal/handlers/server" + +var ( + AccountService server.AccountServiceInterface +)