tgbot_test.go 261 B

12345678910111213
  1. package service
  2. import (
  3. "reflect"
  4. "testing"
  5. )
  6. func TestLoginAttemptDoesNotCarryPassword(t *testing.T) {
  7. typ := reflect.TypeOf(LoginAttempt{})
  8. if _, ok := typ.FieldByName("Password"); ok {
  9. t.Fatal("LoginAttempt must not carry attempted passwords")
  10. }
  11. }