Skip to content

Commit

Permalink
Missed a line of test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
pascaldekloe committed Jan 17, 2019
1 parent 05e84a5 commit 4616287
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ P9j/1Whc92wzd4Osod3U6Tw9g+C1LuHuHOoLJhj5nUQQcP8UQk6jzKPwr4L4uKAc

keys.Secrets = append(keys.Secrets, []byte{1, 2})

if _, err := keys.Check([]byte("broken")); err != errPart {
t.Error("broken token got error:", err)
}

// check unsupported algorithm
const encryptedToken = "eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0.QR1Owv2ug2WyPBnbQrRARTeEk9kDO2w8qDcjiHnSJflSdv1iNqhWXaKH4MqAkQtMoNfABIPJaZm0HaA415sv3aeuBWnD8J-Ui7Ah6cWafs3ZwwFKDFUUsWHSK-IPKxLGTkND09XyjORj_CHAgOPJ-Sd8ONQRnJvWn_hXV1BNMHzUjPyYwEsRhDhzjAD26imasOTsgruobpYGoQcXUwFDn7moXPRfDE8-NoQX7N7ZYMmpUDkR-Cx9obNGwJQ3nM52YCitxoQVPzjbl7WBuB7AohdBoZOdZ24WlN1lVIeh8v1K4krB8xgKvRU8kgFrEn_a1rZgN5TiysnmzTROF869lQ.AxY8DCtDaGlsbGljb3RoZQ.MKOle7UQrG6nSxTLX6Mqwt0orbHvAKeWnDYvpIAeZ72deHxz3roJDXQyhxx0wKaMHDjUEOKIwrtkHthpqEanSBNYHZgmNOV7sln1Eu9g3J8.fiK51VwhsxJ-siBMR-YFiA"
_, err = keys.Check([]byte(encryptedToken))
Expand Down

0 comments on commit 4616287

Please sign in to comment.