(t *testing.T)
| 28 | ) |
| 29 | |
| 30 | func TestCryptoJWKCommand(t *testing.T) { |
| 31 | testscript.Run(t, testscript.Params{ |
| 32 | Files: []string{"testdata/crypto/jwk-create.txtar"}, // defaults and generic failures |
| 33 | Setup: func(e *testscript.Env) error { |
| 34 | return os.WriteFile(filepath.Join(e.Cd, "password.txt"), []byte("password"), 0600) |
| 35 | }, |
| 36 | Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){ |
| 37 | "check_jwk": checkKeyPair, |
| 38 | }, |
| 39 | }) |
| 40 | } |
| 41 | |
| 42 | func TestCryptoJWKCreateRSACommand(t *testing.T) { |
| 43 | testscript.Run(t, testscript.Params{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…