...

Source file src/github.com/go-kivik/kivik/v4/x/kivikd/authdb/couchauth/invalidurl_test.go

Documentation: github.com/go-kivik/kivik/v4/x/kivikd/authdb/couchauth

     1  //go:build 1.8
     2  
     3  package couchauth
     4  
     5  import "testing"
     6  
     7  // Go 1.7 doesn't consider this a failure
     8  func TestBadDSN18(t *testing.T) {
     9  	if _, err := New("ht\\tp:/! This is really bogus!"); err == nil {
    10  		t.Errorf("Expected error for invalid URL.")
    11  	}
    12  }
    13  

View as plain text