MCPcopy Create free account
hub / github.com/akalin/gopar / runOnExampleWorkingDirs

Function runOnExampleWorkingDirs

par1/decoder_test.go:254–269  ·  view source on GitHub ↗
(t *testing.T, testFn func(*testing.T, string, bool))

Source from the content-addressed store, hash-verified

252}
253
254func runOnExampleWorkingDirs(t *testing.T, testFn func(*testing.T, string, bool)) {
255 workingDirs := []string{
256 memfs.RootDir(),
257 filepath.Join(memfs.RootDir(), "dir"),
258 filepath.Join(memfs.RootDir(), "dir1", "dir2"),
259 }
260 for _, workingDir := range workingDirs {
261 workingDir := workingDir
262 for _, useAbsPath := range []bool{false, true} {
263 useAbsPath := useAbsPath
264 t.Run(fmt.Sprintf("workingDir=%s,useAbsPath=%t", workingDir, useAbsPath), func(t *testing.T) {
265 testFn(t, workingDir, useAbsPath)
266 })
267 }
268 }
269}
270
271func TestFileCounts(t *testing.T) {
272 runOnExampleWorkingDirs(t, testFileCounts)

Callers 10

TestCreateFunction · 0.70
TestCreateDefaultsFunction · 0.70
TestRepairFunction · 0.70
TestRepairDefaultsFunction · 0.70
TestWriteParityFunction · 0.70
TestVerifyFunction · 0.70
TestVerifyDefaultsFunction · 0.70
TestFileCountsFunction · 0.70
TestVerifyAllDataFunction · 0.70
TestDecoderRepairFunction · 0.70

Calls 1

RootDirFunction · 0.92

Tested by

no test coverage detected