lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 15f8a410c7d3847051f827e286f72d757f40292b
parent a5ecaca28ee7549bd99e1bd2ef081c1fc8a765be
Author: Sean Enck <sean@ttypty.com>
Date:   Thu, 30 Mar 2023 19:39:56 -0400

fixing some text around hash change

Diffstat:
Minternal/app/conv.go | 4++--
Minternal/app/conv_test.go | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/internal/app/conv.go b/internal/app/conv.go @@ -8,11 +8,11 @@ import ( "github.com/enckse/lockbox/internal/backend" ) -// Conv will hash 1-N files +// Conv will convert 1-N files func Conv(cmd CommandOptions) error { args := cmd.Args() if len(args) == 0 { - return errors.New("hash requires a file") + return errors.New("conv requires a file") } w := cmd.Writer() for _, a := range args { diff --git a/internal/app/conv_test.go b/internal/app/conv_test.go @@ -9,7 +9,7 @@ import ( func TestConv(t *testing.T) { c := newMockCommand(t) - if err := app.Conv(c); err.Error() != "hash requires a file" { + if err := app.Conv(c); err.Error() != "conv requires a file" { t.Errorf("invalid error: %v", err) } c.buf = bytes.Buffer{} @@ -18,6 +18,6 @@ func TestConv(t *testing.T) { t.Errorf("invalid error: %v", err) } if c.buf.String() == "" { - t.Error("nothing hashed") + t.Error("nothing converted") } }