/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/externalstest/test_common.go
26 строк
830 B
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. //go:build !production package externalstest import ( "github.com/keybase/client/go/externals" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/pvl" "github.com/keybase/client/go/uidmap" ) // SetupTest ignores the third argument. func SetupTest(tb libkb.TestingTB, name string, depthIgnored int) (tc libkb.TestContext) { // libkb.SetupTest ignores the third argument (depth). tc = libkb.SetupTest(tb, name, depthIgnored) tc.G.SetProofServices(externals.NewProofServices(tc.G)) tc.G.SetUIDMapper(uidmap.NewUIDMap(10000)) tc.G.SetServiceSummaryMapper(uidmap.NewServiceSummaryMap(1000)) pvl.NewPvlSourceAndInstall(tc.G) externals.NewParamProofStoreAndInstall(tc.G) return tc }