github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/externalstest/test_common.go (about) 1 // Copyright 2015 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 //go:build !production 5 // +build !production 6 7 package externalstest 8 9 import ( 10 "github.com/keybase/client/go/externals" 11 "github.com/keybase/client/go/libkb" 12 "github.com/keybase/client/go/pvl" 13 "github.com/keybase/client/go/uidmap" 14 ) 15 16 // SetupTest ignores the third argument. 17 func SetupTest(tb libkb.TestingTB, name string, depthIgnored int) (tc libkb.TestContext) { 18 // libkb.SetupTest ignores the third argument (depth). 19 tc = libkb.SetupTest(tb, name, depthIgnored) 20 21 tc.G.SetProofServices(externals.NewProofServices(tc.G)) 22 tc.G.SetUIDMapper(uidmap.NewUIDMap(10000)) 23 tc.G.SetServiceSummaryMapper(uidmap.NewServiceSummaryMap(1000)) 24 pvl.NewPvlSourceAndInstall(tc.G) 25 externals.NewParamProofStoreAndInstall(tc.G) 26 return tc 27 }