Skip to content

Commit

Permalink
Addressing Linter issues (#29)
Browse files Browse the repository at this point in the history
* generate the data file instead

* addressing some linter issues
  • Loading branch information
alshabib authored Mar 20, 2024
1 parent 3c0ed84 commit ebd033e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions file/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ import (
"path"
"testing"

"github.com/google/go-cmp/cmp"
fpb "github.com/openconfig/gnoi/file"
"github.com/openconfig/gnoi/types"
tpb "github.com/openconfig/gnoi/types"

"github.com/google/go-cmp/cmp"
"github.com/openconfig/gnoigo/file"
"github.com/openconfig/gnoigo/internal"
"google.golang.org/grpc"
Expand Down Expand Up @@ -57,7 +58,7 @@ func (fc *fakePutClient) Recv() (*fpb.PutResponse, error) {
return &fpb.PutResponse{}, nil
}

func (fv *fakePutClient) CloseAndRecv() (*fpb.PutResponse, error) {
func (fc *fakePutClient) CloseAndRecv() (*fpb.PutResponse, error) {
return &fpb.PutResponse{}, nil
}

Expand Down Expand Up @@ -112,8 +113,8 @@ func TestPut(t *testing.T) {
},
{
Request: &fpb.PutRequest_Hash{
Hash: &types.HashType{
Method: types.HashType_SHA256,
Hash: &tpb.HashType{
Method: tpb.HashType_SHA256,
Hash: hash.Sum(nil),
},
},
Expand All @@ -139,8 +140,8 @@ func TestPut(t *testing.T) {
},
{
Request: &fpb.PutRequest_Hash{
Hash: &types.HashType{
Method: types.HashType_SHA256,
Hash: &tpb.HashType{
Method: tpb.HashType_SHA256,
Hash: hash.Sum(nil),
},
},
Expand Down

0 comments on commit ebd033e

Please sign in to comment.