(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestCryptoJWKCreateRSACommand(t *testing.T) { |
| 43 | testscript.Run(t, testscript.Params{ |
| 44 | Files: []string{"testdata/crypto/jwk-create-rsa.txtar"}, // RSA generation |
| 45 | Setup: func(e *testscript.Env) error { |
| 46 | return os.WriteFile(filepath.Join(e.Cd, "password.txt"), []byte("password"), 0600) |
| 47 | }, |
| 48 | Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){ |
| 49 | "check_jwk": checkKeyPair, |
| 50 | "check_jwk_without_password": checkKeyPairWithoutPassword, |
| 51 | }, |
| 52 | }) |
| 53 | } |
| 54 | |
| 55 | func TestCryptoJWKCreateECCommand(t *testing.T) { |
| 56 | testscript.Run(t, testscript.Params{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…