(t *testing.T)
| 324 | } |
| 325 | |
| 326 | func TestCheckSigScheme(t *testing.T) { |
| 327 | testClient, _ := NewClientImpl("") |
| 328 | |
| 329 | assert.Equal(t, testClient.checkSigScheme("ECDSA", "SHA224withECDSA"), true) |
| 330 | assert.Equal(t, testClient.checkSigScheme("ECDSA", "SM3withSM2"), false) |
| 331 | assert.Equal(t, testClient.checkSigScheme("SM2", "SM3withSM2"), true) |
| 332 | assert.Equal(t, testClient.checkSigScheme("SM2", "SHA224withECDSA"), false) |
| 333 | assert.Equal(t, testClient.checkSigScheme("Ed25519", "SHA512withEdDSA"), true) |
| 334 | assert.Equal(t, testClient.checkSigScheme("Ed25519", "SHA224withECDSA"), false) |
| 335 | } |
nothing calls this directly
no test coverage detected