(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestExternalAuthRecordRef(t *testing.T) { |
| 40 | t.Parallel() |
| 41 | |
| 42 | app, _ := tests.NewTestApp() |
| 43 | defer app.Cleanup() |
| 44 | |
| 45 | ea := core.NewExternalAuth(app) |
| 46 | |
| 47 | testValues := []string{"test_1", "test2", ""} |
| 48 | for i, testValue := range testValues { |
| 49 | t.Run(fmt.Sprintf("%d_%q", i, testValue), func(t *testing.T) { |
| 50 | ea.SetRecordRef(testValue) |
| 51 | |
| 52 | if v := ea.RecordRef(); v != testValue { |
| 53 | t.Fatalf("Expected getter %q, got %q", testValue, v) |
| 54 | } |
| 55 | |
| 56 | if v := ea.GetString("recordRef"); v != testValue { |
| 57 | t.Fatalf("Expected field value %q, got %q", testValue, v) |
| 58 | } |
| 59 | }) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | func TestExternalAuthCollectionRef(t *testing.T) { |
| 64 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…