13 lines
308 B
Go
13 lines
308 B
Go
|
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")
|
||
|
}
|
||
|
}
|