Implement shared-root publish execution
This commit is contained in:
@@ -132,6 +132,22 @@ func TestManagedBundleTargetsRejectsInvalidOutputPath(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestManagedOutputTargetsOmitsStateFile(t *testing.T) {
|
||||
targets, err := ManagedOutputTargets("bundle", []string{"report.md", "nested/report.html"})
|
||||
if err != nil {
|
||||
t.Fatalf("ManagedOutputTargets() error = %v", err)
|
||||
}
|
||||
want := []string{"bundle/report.md", "bundle/nested/report.html"}
|
||||
if len(targets) != len(want) {
|
||||
t.Fatalf("targets = %v, want %v", targets, want)
|
||||
}
|
||||
for index := range want {
|
||||
if targets[index] != want[index] {
|
||||
t.Fatalf("targets = %v, want %v", targets, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestListSortsEntries(t *testing.T) {
|
||||
backend := walkBackend{
|
||||
entries: []Entry{
|
||||
@@ -215,6 +231,10 @@ func (b walkBackend) DeleteManagedBundle(context.Context, string, []string, Dele
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b walkBackend) DeleteManagedOutputs(context.Context, string, []string, DeleteOptions) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b walkBackend) DeletePrefix(context.Context, string, DeleteOptions) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user