Validate portable workspace identifiers
This commit is contained in:
21
internal/artifacts/paths_test_helpers_test.go
Normal file
21
internal/artifacts/paths_test_helpers_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package artifacts
|
||||
|
||||
import "testing"
|
||||
|
||||
func mustSessionPreviousArtifactPath(t *testing.T, paths SessionPaths, relative string) string {
|
||||
t.Helper()
|
||||
path, err := SessionPreviousArtifactPath(paths, relative)
|
||||
if err != nil {
|
||||
t.Fatalf("SessionPreviousArtifactPath() error = %v", err)
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
func mustSessionPreviousArtifactPathForCampaign(t *testing.T, root, campaign, sessionID, relative string) string {
|
||||
t.Helper()
|
||||
path, err := SessionPreviousArtifactPathForCampaign(root, campaign, sessionID, relative)
|
||||
if err != nil {
|
||||
t.Fatalf("SessionPreviousArtifactPathForCampaign() error = %v", err)
|
||||
}
|
||||
return path
|
||||
}
|
||||
Reference in New Issue
Block a user