MCPcopy Index your code
hub / github.com/devspace-sh/devspace / TestCreateDirInFileMap

Function TestCreateDirInFileMap

pkg/devspace/sync/sync_test.go:717–727  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

715}
716
717func TestCreateDirInFileMap(t *testing.T) {
718 sync := Sync{
719 fileIndex: newFileIndex(),
720 }
721
722 sync.fileIndex.CreateDirInFileMap("/TestDir1/TestDir2/TestDir3/TestDir4")
723
724 if len(sync.fileIndex.fileMap) != 4 {
725 t.Fatal("Create dir in file map failed!")
726 }
727}
728
729func TestRemoveDirInFileMap(t *testing.T) {
730 sync := Sync{

Callers

nothing calls this directly

Calls 3

newFileIndexFunction · 0.85
CreateDirInFileMapMethod · 0.80
FatalMethod · 0.45

Tested by

no test coverage detected