INNER CODE UNIT · Go

TestError

faabiosr/cachego · errors_test.go:8

func TestError(t *testing.T) {
	expect := "failed"
	er := err(expect)

	if r := fmt.Sprint(er); r != expect {
		t.Errorf("invalid string: expect %s, got %s", expect, r)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…