Skip to content

Commit

Permalink
gp --exclusion new flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sarao1310 committed Jul 9, 2023
1 parent e3ec036 commit fd8e78c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions artifactory/commands/golang/archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,13 @@ func TestArchiveProject(t *testing.T) {
}
tests.RenamePath(dotGitPath, filepath.Join(baseDir, originalFolder), t)
}

func TestGetAbsolutePaths(t *testing.T) {
testData := []string{"./dir1/*", "*.txt", "./*/dir2/*"}
result, err := getAbsolutePaths(testData)
assert.NoError(t, err)
wd, err := os.Getwd()
assert.NoError(t, err)
expectedResults := []string{wd + "/dir1/*", wd + "/*.txt", wd + "/*/dir2/*"}
assert.ElementsMatch(t, result, expectedResults)
}

0 comments on commit fd8e78c

Please sign in to comment.