From dde69dde61e57fa929596294f6b4e8f798f5598e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 2 Jul 2026 22:59:40 +0900 Subject: internal/pkg: rename inputs method Inputs is more correct than dependencies in the current terminology. Signed-off-by: Ophestra --- internal/pkg/pkg_test.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'internal/pkg/pkg_test.go') diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index d4e9e855..01cd2617 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -140,11 +140,11 @@ type stubArtifact struct { cure func(t *pkg.TContext) error } -func (a *stubArtifact) Kind() pkg.Kind { return a.kind } -func (a *stubArtifact) Params(ctx *pkg.IContext) { ctx.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 } +func (a *stubArtifact) Kind() pkg.Kind { return a.kind } +func (a *stubArtifact) Params(ctx *pkg.IContext) { ctx.Write(a.params) } +func (a *stubArtifact) Inputs() []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 { @@ -156,11 +156,11 @@ type stubArtifactF struct { cure func(f *pkg.FContext) error } -func (a *stubArtifactF) Kind() pkg.Kind { return a.kind } -func (a *stubArtifactF) Params(ctx *pkg.IContext) { ctx.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 } +func (a *stubArtifactF) Kind() pkg.Kind { return a.kind } +func (a *stubArtifactF) Params(ctx *pkg.IContext) { ctx.Write(a.params) } +func (a *stubArtifactF) Inputs() []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 { @@ -1883,7 +1883,7 @@ func (earlyFailureF) Kind() pkg.Kind { return pkg.KindExec } func (earlyFailureF) Params(*pkg.IContext) {} func (earlyFailureF) IsExclusive() bool { return false } -func (a earlyFailureF) Dependencies() []pkg.Artifact { +func (a earlyFailureF) Inputs() []pkg.Artifact { deps := make([]pkg.Artifact, a) for i := range deps { deps[i] = a - 1 -- cgit v1.3.1