From 7214e0a73f77aa1c62a2a16993ec6b7836407378 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 2 Jan 2024 10:16:30 -0500 Subject: [PATCH] export testing --- example/example.go | 2 +- main_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/example/example.go b/example/example.go index 9bc3a0c..df31a82 100644 --- a/example/example.go +++ b/example/example.go @@ -37,7 +37,7 @@ func main() { os.Exit(1) } - scsusers.Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25") + scsusers.Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25", true) a:=scsusers.UsernameAvailable("testuser") fmt.Printf("Initial test of username available: %v\n", a) a=scsusers.Register("testuser", email, "127.0.0.1") diff --git a/main_test.go b/main_test.go index 0505248..93a313b 100644 --- a/main_test.go +++ b/main_test.go @@ -12,7 +12,6 @@ import ( func TestUsers(t *testing.T) { var email string - c.Testing = true generatePassword(16) flag.StringVar(&email, "email", "", "Email address to use for registration test") flag.Parse() @@ -38,7 +37,7 @@ func TestUsers(t *testing.T) { os.Exit(1) } - Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25") + Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25", true) a := UsernameAvailable("testuser") fmt.Printf("Initial test of username available: %v\n", a) a = Register("testuser", email, "127.0.0.1")