()
| 32 | ) |
| 33 | |
| 34 | func main() { |
| 35 | testing.Init() |
| 36 | _ = flag.Set("test.timeout", "0") |
| 37 | |
| 38 | flag.Parse() |
| 39 | |
| 40 | // This is just a way to run tests outside go test |
| 41 | testing.Main(func(_, _ string) (bool, error) { |
| 42 | return true, nil |
| 43 | }, []testing.InternalTest{ |
| 44 | { |
| 45 | Name: "Run Fake IDP", |
| 46 | F: RunIDP(), |
| 47 | }, |
| 48 | }, nil, nil) |
| 49 | } |
| 50 | |
| 51 | type withClientSecret struct { |
| 52 | // We never unmarshal this in prod, but we need this field for testing. |