MCPcopy Index your code
hub / github.com/coder/coder / KeyringServiceName

Function KeyringServiceName

cli/sessionstore/testhelpers/testhelpers.go:12–15  ·  view source on GitHub ↗

KeyringServiceName generates a test service name for use with the OS keyring. It intends to prevent keyring usage collisions between parallel tests within a process and parallel test processes (which may occur on CI).

(t *testing.T)

Source from the content-addressed store, hash-verified

10// It intends to prevent keyring usage collisions between parallel tests within a
11// process and parallel test processes (which may occur on CI).
12func KeyringServiceName(t *testing.T) string {
13 t.Helper()
14 return t.Name() + "_" + fmt.Sprintf("%v", os.Getpid())
15}

Callers 3

setupKeyringTestEnvFunction · 0.92
TestKeyringFunction · 0.92

Calls 2

HelperMethod · 0.65
NameMethod · 0.65

Tested by 3

setupKeyringTestEnvFunction · 0.74
TestKeyringFunction · 0.74