(t *testing.T)
| 62 | } |
| 63 | |
| 64 | func TestAuthOriginCollectionRef(t *testing.T) { |
| 65 | t.Parallel() |
| 66 | |
| 67 | app, _ := tests.NewTestApp() |
| 68 | defer app.Cleanup() |
| 69 | |
| 70 | origin := core.NewAuthOrigin(app) |
| 71 | |
| 72 | testValues := []string{"test_1", "test2", ""} |
| 73 | for i, testValue := range testValues { |
| 74 | t.Run(fmt.Sprintf("%d_%q", i, testValue), func(t *testing.T) { |
| 75 | origin.SetCollectionRef(testValue) |
| 76 | |
| 77 | if v := origin.CollectionRef(); v != testValue { |
| 78 | t.Fatalf("Expected getter %q, got %q", testValue, v) |
| 79 | } |
| 80 | |
| 81 | if v := origin.GetString("collectionRef"); v != testValue { |
| 82 | t.Fatalf("Expected field value %q, got %q", testValue, v) |
| 83 | } |
| 84 | }) |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | func TestAuthOriginFingerprint(t *testing.T) { |
| 89 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…