Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMarshalInvalidPublicKey (0.18 sec)

  1. src/crypto/x509/x509_test.go

    	_, err := ParsePKCS1PublicKey(derBytes)
    	if !strings.Contains(err.Error(), errorContains) {
    		t.Errorf("expected error containing %q, got %s", errorContains, err)
    	}
    }
    
    func TestMarshalInvalidPublicKey(t *testing.T) {
    	_, err := MarshalPKIXPublicKey(&ecdsa.PublicKey{})
    	if err == nil {
    		t.Errorf("expected error, got MarshalPKIXPublicKey success")
    	}
    	_, err = MarshalPKIXPublicKey(&ecdsa.PublicKey{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
Back to top