MCPcopy Index your code
hub / github.com/smallstep/cli / TestCryptoKeyPair

Function TestCryptoKeyPair

integration/crypto_test.go:236–246  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

234}
235
236func TestCryptoKeyPair(t *testing.T) {
237 testscript.Run(t, testscript.Params{
238 Files: []string{"testdata/crypto/keypair.txtar"},
239 Setup: func(e *testscript.Env) error {
240 return os.WriteFile(filepath.Join(e.Cd, "password.txt"), []byte("password"), 0600)
241 },
242 Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){
243 "check_key_pair": checkKeyPair,
244 },
245 })
246}
247
248func TestCryptoOTP(t *testing.T) {
249 testscript.Run(t, testscript.Params{

Callers

nothing calls this directly

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…