MCPcopy
hub / github.com/kptdev/kpt / AssertLocalDataEquals

Method AssertLocalDataEquals

internal/testutil/setup_manager.go:231–240  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

229}
230
231func (g *TestSetupManager) AssertLocalDataEquals(path string) bool {
232 var sourceDir string
233 if filepath.IsAbs(path) {
234 sourceDir = path
235 } else {
236 sourceDir = filepath.Join(g.UpstreamRepo.DatasetDirectory, path)
237 }
238 destDir := filepath.Join(g.LocalWorkspace.WorkspaceDirectory, g.targetDir)
239 return g.UpstreamRepo.AssertEqual(g.T, sourceDir, destDir)
240}
241
242func (g *TestSetupManager) SetLocalData(path string) bool {
243 if !assert.NoError(g.T, copyutil.CopyDir(

Calls 1

AssertEqualMethod · 0.80