(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func Test_applyDefaults(t *testing.T) { |
| 30 | t.Parallel() |
| 31 | |
| 32 | testCases := applyDefaultTestCases{} |
| 33 | testCases = append(testCases, applyDefaultPlatformSpecificTestCases()...) |
| 34 | |
| 35 | for _, tc := range testCases { |
| 36 | t.Run(tc.name, func(t *testing.T) { |
| 37 | t.Parallel() |
| 38 | |
| 39 | ctrl := gomock.NewController(t) |
| 40 | deps := mocks.NewLoadSystemDeps(ctrl) |
| 41 | mem := mocks.NewMemory(ctrl) |
| 42 | ecc := mocks.NewCommandCreator(ctrl) |
| 43 | |
| 44 | tc.mockSvc(deps, mem, ecc, ctrl) |
| 45 | |
| 46 | got := applyDefaults(tc.cfg, deps, mem, ecc) |
| 47 | require.Equal(t, tc.want, got) |
| 48 | }) |
| 49 | } |
| 50 | } |
nothing calls this directly
no test coverage detected