(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestPrintAuthInfoText_Expired(t *testing.T) { |
| 93 | t.Parallel() |
| 94 | |
| 95 | info := &authInfo{ |
| 96 | Token: "eyJhbGciOiJIUzI1NiJ9.xxxxxxxxxxxx.yyyyyyyy1234567890", |
| 97 | ExpiresAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC), |
| 98 | Expired: true, |
| 99 | } |
| 100 | |
| 101 | var buf bytes.Buffer |
| 102 | printAuthInfoText(&buf, info) |
| 103 | |
| 104 | assert.Contains(t, buf.String(), "❌ Expired") |
| 105 | } |
nothing calls this directly
no test coverage detected