diff options
Diffstat (limited to 'internal/pkg/pkg_test.go')
| -rw-r--r-- | internal/pkg/pkg_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index fe618a6a..d791f107 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -96,12 +96,14 @@ func (a *stubArtifact) Kind() pkg.Kind { return a.kind } func (a *stubArtifact) Params(ctx *pkg.IContext) { ctx.GetHash().Write(a.params) } func (a *stubArtifact) Dependencies() []pkg.Artifact { return a.deps } func (a *stubArtifact) Cure(t *pkg.TContext) error { return a.cure(t) } +func (*stubArtifact) IsExclusive() bool { return false } // A stubArtifactF implements [FloodArtifact] with hardcoded behaviour. type stubArtifactF struct { kind pkg.Kind params []byte deps []pkg.Artifact + excl bool cure func(f *pkg.FContext) error } @@ -110,6 +112,7 @@ func (a *stubArtifactF) Kind() pkg.Kind { return a.kind } func (a *stubArtifactF) Params(ctx *pkg.IContext) { ctx.GetHash().Write(a.params) } func (a *stubArtifactF) Dependencies() []pkg.Artifact { return a.deps } func (a *stubArtifactF) Cure(f *pkg.FContext) error { return a.cure(f) } +func (a *stubArtifactF) IsExclusive() bool { return a.excl } // A stubFile implements [FileArtifact] with hardcoded behaviour. type stubFile struct { |
