auth

Paddy 2015-01-24 Parent:23c1a07c8a61 Child:d30a3a12d387

129:4f5d13d2f7c7 Go to Latest

auth/token.go

Test our getClientAuth helper, switch to table-based tests. Our getClientAuth helper was being tested implicitly when we tested our verifyClient helper, but let's test them separately. While we're at it, let's use table based tests instead of copy and paste. I noticed a lot of copy/paste errors while I was updating this, and the less test code we have and the easier we make it to test new edge cases, the better of we are.

History