package serve import "testing" func TestOriginator(t *testing.T) { // We could do plenty of tests here, but the one I really care about is // that we get an error on an empty string. _, err := originator("") if err == nil { t.Error("originator should have returned an error on an empty string") } }