MCPcopy Index your code
hub / github.com/helm/helm / createTestKeyring

Function createTestKeyring

pkg/cmd/plugin_verify_test.go:251–264  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

249}
250
251func createTestKeyring(t *testing.T) string {
252 t.Helper()
253
254 // Create a temporary keyring file
255 tmpDir := t.TempDir()
256 keyringPath := filepath.Join(tmpDir, "pubring.gpg")
257
258 // Create empty keyring for testing
259 if err := os.WriteFile(keyringPath, []byte{}, 0644); err != nil {
260 t.Fatalf("Failed to create test keyring: %v", err)
261 }
262
263 return keyringPath
264}

Callers 1

Calls 3

HelperMethod · 0.80
FatalfMethod · 0.80
WriteFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…