go-urlsh/internal/db/cookie_test.go

26 lines
491 B
Go

package db
//
//import (
// "database/sql"
// "regexp"
// "testing"
//)
//
//var db sql.DB
//
//func init() {
//
//}
// TestHelloName calls greetings.Hello with a name, checking
// for a valid return value.
//func TestCookieValidation(t *testing.T) {
// name := "Gladys"
// want := regexp.MustCompile(`\b` + name + `\b`)
// msg, err := Hello("Gladys")
// if !want.MatchString(msg) || err != nil {
// t.Fatalf(`Hello("Gladys") = %q, %v, want match for %#q, nil`, msg, err, want)
// }
//}