github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/git/common_test.go (about)

     1  package git
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/keybase/client/go/externals"
     7  	"github.com/keybase/client/go/kbtest"
     8  	"github.com/keybase/client/go/libkb"
     9  	"github.com/keybase/client/go/teams"
    10  )
    11  
    12  // Copied from the teams tests.
    13  func SetupTest(tb testing.TB, name string, depth int) (tc libkb.TestContext) {
    14  	tc = libkb.SetupTest(tb, name, depth+1)
    15  	InstallInsecureTriplesec(tc.G)
    16  	tc.G.SetProofServices(externals.NewProofServices(tc.G))
    17  	tc.G.ChatHelper = kbtest.NewMockChatHelper()
    18  	teams.ServiceInit(tc.G)
    19  	return tc
    20  }