define build for running online and offline tests

This commit is contained in:
Carlosokumu 2024-10-17 12:33:09 +03:00
parent 54cc33c819
commit 127219f510
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// +build !online
package testutil
import (
"git.grassecon.net/urdt/ussd/internal/handlers/server"
)
var (
AccountService server.AccountServiceInterface = &server.TestAccountService{}
)

View File

@ -0,0 +1,9 @@
// +build online
package testutil
import "git.grassecon.net/urdt/ussd/internal/handlers/server"
var (
AccountService server.AccountServiceInterface
)