rename check304 to should304

this reads a little better in if blocks
This commit is contained in:
Will Norris 2017-06-14 16:34:31 -04:00
parent fb63cbe9df
commit c81621ae35
2 changed files with 6 additions and 6 deletions

View file

@ -145,7 +145,7 @@ func TestValidSignature(t *testing.T) {
}
}
func TestCheck304(t *testing.T) {
func TestShould304(t *testing.T) {
tests := []struct {
req, resp string
is304 bool
@ -212,8 +212,8 @@ func TestCheck304(t *testing.T) {
t.Errorf("http.ReadResponse(%q) returned error: %v", tt.resp, err)
}
if got, want := check304(req, resp), tt.is304; got != want {
t.Errorf("check304(%q, %q) returned: %v, want %v", tt.req, tt.resp, got, want)
if got, want := should304(req, resp), tt.is304; got != want {
t.Errorf("should304(%q, %q) returned: %v, want %v", tt.req, tt.resp, got, want)
}
}
}