# HG changeset patch # User Paul Fisher # Date 1446168688 14400 # Node ID 4368a377ff64370c483fc89f3a3922b4fac2a547 # Parent da6c493cf08a712787304c28cfffdd90e388b07f gofmt. diff -r da6c493cf08a -r 4368a377ff64 auth/auth.go --- a/auth/auth.go Thu Oct 29 21:29:27 2015 -0400 +++ b/auth/auth.go Thu Oct 29 21:31:28 2015 -0400 @@ -27,7 +27,7 @@ ) var ( - WrongLengthError error = errors.New("multipass/auth: password entry must have 3 fields") + WrongLengthError error = errors.New("multipass/auth: password entry must have 3 fields") BadIDError = errors.New("multipass/auth: ID field invalid") Base64Error = errors.New("multipass/auth: can't decode base64 data") LongDescriptionError = errors.New("multipass/auth: description must be less than 255 bytes") diff -r da6c493cf08a -r 4368a377ff64 auth/auth_test.go --- a/auth/auth_test.go Thu Oct 29 21:29:27 2015 -0400 +++ b/auth/auth_test.go Thu Oct 29 21:31:28 2015 -0400 @@ -21,9 +21,9 @@ rest []string }{ { - shadow: "1234:$2a$12$apFtWGXKtWBavVy5eo.22Ohs43GudT5IYTqyQkIBX9LpS7YtvKBpa:", - id: 1234, - hash: "$2a$12$apFtWGXKtWBavVy5eo.22Ohs43GudT5IYTqyQkIBX9LpS7YtvKBpa", + shadow: "1234:$2a$12$apFtWGXKtWBavVy5eo.22Ohs43GudT5IYTqyQkIBX9LpS7YtvKBpa:", + id: 1234, + hash: "$2a$12$apFtWGXKtWBavVy5eo.22Ohs43GudT5IYTqyQkIBX9LpS7YtvKBpa", }, { shadow: basicShadow, @@ -32,9 +32,9 @@ description: "anything more than 5 reps is cardio", }, { - shadow: anotherShadow, - id: 1, - hash: "$2a$12$lINQdYWHOcLKoqhNOr3mNOpZSAu5JOBS2F7T/VDfYn2rvv6qUJehG", + shadow: anotherShadow, + id: 1, + hash: "$2a$12$lINQdYWHOcLKoqhNOr3mNOpZSAu5JOBS2F7T/VDfYn2rvv6qUJehG", }, { shadow: "one:bogushash:", @@ -53,7 +53,7 @@ wantErr: true, }, { - shadow: "1:bogushash::more things", + shadow: "1:bogushash::more things", wantErr: true, }, } @@ -132,7 +132,7 @@ } type testcase struct { password string - want bool + want bool } cases := []testcase{