go-urlsh/internal/db/cookie_test.go

27 lines
491 B
Go
Raw Permalink Normal View History

2024-09-30 13:19:01 +02:00
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)
// }
//}