(t *testing.T)
| 826 | } |
| 827 | |
| 828 | func TestSignInPageSkipProviderDirect(t *testing.T) { |
| 829 | sipTest, err := NewSignInPageTest(true) |
| 830 | if err != nil { |
| 831 | t.Fatal(err) |
| 832 | } |
| 833 | |
| 834 | endpoint := "/sign_in" |
| 835 | |
| 836 | code, body := sipTest.GetEndpoint(endpoint) |
| 837 | assert.Equal(t, 302, code) |
| 838 | |
| 839 | match := sipTest.signInProviderRegexp.FindStringSubmatch(body) |
| 840 | if match == nil { |
| 841 | t.Fatal(patternNotFound + |
| 842 | signInSkipProvider + "\nBody:\n" + body) |
| 843 | } |
| 844 | } |
| 845 | |
| 846 | type ProcessCookieTest struct { |
| 847 | opts *options.Options |
nothing calls this directly
no test coverage detected