diff --git a/internal/sum/sum.go b/internal/sum/sum.go index 3c08e922..a7d8f5aa 100644 --- a/internal/sum/sum.go +++ b/internal/sum/sum.go @@ -1,9 +1,7 @@ package sum import ( - "bytes" "context" - "io" "os" "os/exec" "strings" @@ -73,23 +71,6 @@ func New(host, user, pass string, opts ...Option) (*Sum, error) { return sum, nil } -// Return a Fake sum executor for tests -func NewFakeSum(r io.Reader) (*Sum, error) { - e := ex.NewFakeExecutor("sum") - b := bytes.Buffer{} - - _, err := b.ReadFrom(r) - if err != nil { - return nil, err - } - - e.SetStdout(b.Bytes()) - - return &Sum{ - Executor: e, - }, nil -} - // Open a connection to a BMC func (c *Sum) Open(ctx context.Context) (err error) { return nil