From 2c162e3107eb2b0db8facc2484d013dcd2981021 Mon Sep 17 00:00:00 2001 From: neilnaveen <42328488+neilnaveen@users.noreply.github.com> Date: Thu, 26 Oct 2023 11:05:31 -0500 Subject: [PATCH] Fixed Lint Issues - Fixed lint issues - Renamed test function to TestLoadEnvelope Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com> --- source/memory_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/memory_test.go b/source/memory_test.go index 737e0386..bfd55752 100644 --- a/source/memory_test.go +++ b/source/memory_test.go @@ -16,7 +16,6 @@ package source import ( "encoding/json" - "fmt" "reflect" "testing" @@ -25,10 +24,10 @@ import ( intoto "github.com/testifysec/go-witness/intoto" ) -func TestLoadFile(t *testing.T) { +func TestLoadEnvelope(t *testing.T) { predicate, err := json.Marshal(attestation.Collection{}) if err != nil { - fmt.Errorf("failed to marshal predicate, err = %v", err) + t.Fatalf("failed to marshal predicate, err = %v", err) } tests := []struct { name string @@ -158,4 +157,4 @@ func TestLoadFile(t *testing.T) { }) } -} +} \ No newline at end of file