MCPcopy
hub / github.com/runfinch/finch / Test_applyDefaults

Function Test_applyDefaults

pkg/config/defaults_remote_test.go:29–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func 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}

Callers

nothing calls this directly

Calls 6

NewLoadSystemDepsFunction · 0.92
NewMemoryFunction · 0.92
NewCommandCreatorFunction · 0.92
applyDefaultsFunction · 0.70
RunMethod · 0.65

Tested by

no test coverage detected