Skip to content

Commit

Permalink
Fixed Lint Issues
Browse files Browse the repository at this point in the history
- Fixed lint issues
- Renamed test function to TestLoadEnvelope

Signed-off-by: neilnaveen <[email protected]>
  • Loading branch information
neilnaveen committed Oct 26, 2023
1 parent a30a2ef commit 2c162e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package source

import (
"encoding/json"
"fmt"
"reflect"
"testing"

Expand All @@ -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
Expand Down Expand Up @@ -158,4 +157,4 @@ func TestLoadFile(t *testing.T) {

})
}
}
}

0 comments on commit 2c162e3

Please sign in to comment.