github.com/packtpublishing/learning-functional-programming-in-go@v0.0.0-20230130084745-8b849f6d58c4/Chapter06/04_onion/src/infrastructure/infrastructure_test/localhandler_test.go (about) 1 package infrastructure_test 2 3 import ( 4 "testing" 5 "infrastructure" 6 ) 7 8 func TestLocalInteractor(t *testing.T) { 9 localInteractor, err := infrastructure.GetLocalInteractor() 10 if err != nil { 11 t.Error("GetLocalInteractor failed") 12 } 13 localInteractor.LocalRepository.FileExists() 14 } 15 16 func TestFileExists(t *testing.T) { 17 t.Error("We haven't written our test yet") 18 }