presubmit: check for uppercase (#1774)

Another thing we can test automatically, we sorta settled on using an
uppercase letter in in t.Log and t.Fatal calls.

Let's just check for this.
This commit is contained in:
Miek Gieben 2018-05-07 22:47:25 +01:00 committed by Yong Tang
parent 15d989e294
commit 643550eabe
25 changed files with 104 additions and 90 deletions

View file

@ -42,7 +42,7 @@ func buildPool(size int) ([]*healthcheck.UpstreamHost, func(), error) {
for _, e := range errs {
valErr += fmt.Sprintf("%v\n", e)
}
return nil, nil, fmt.Errorf("error at allocation of the pool : %v", valErr)
return nil, nil, fmt.Errorf("Error at allocation of the pool : %v", valErr)
}
return ups, stopIt, nil
}
@ -51,7 +51,7 @@ func TestGRPCStartupShutdown(t *testing.T) {
pool, closePool, err := buildPool(2)
if err != nil {
t.Fatalf("error creating the pool of upstream for the test : %s", err)
t.Fatalf("Error creating the pool of upstream for the test : %s", err)
}
defer closePool()
@ -91,7 +91,7 @@ func TestGRPCRunAQuery(t *testing.T) {
pool, closePool, err := buildPool(2)
if err != nil {
t.Fatalf("error creating the pool of upstream for the test : %s", err)
t.Fatalf("Error creating the pool of upstream for the test : %s", err)
}
defer closePool()
@ -131,7 +131,7 @@ func TestGRPCRunAQueryOnSecureLinkWithInvalidCert(t *testing.T) {
pool, closePool, err := buildPool(1)
if err != nil {
t.Fatalf("error creating the pool of upstream for the test : %s", err)
t.Fatalf("Error creating the pool of upstream for the test : %s", err)
}
defer closePool()