Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSystemRootsErrorUnwrap (0.28 sec)

  1. src/crypto/x509/verify_test.go

    	}
    
    	systemRoots = nil
    
    	_, err = leaf.Verify(opts)
    	if _, ok := err.(SystemRootsError); !ok {
    		t.Errorf("error was not SystemRootsError: %v", err)
    	}
    }
    
    func TestSystemRootsErrorUnwrap(t *testing.T) {
    	var err1 = errors.New("err1")
    	err := SystemRootsError{Err: err1}
    	if !errors.Is(err, err1) {
    		t.Error("errors.Is failed, wanted success")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
Back to top