Skip to content

Commit

Permalink
refactor(define): making NewAuxiliaryRequest public
Browse files Browse the repository at this point in the history
Signed-off-by: Deepanshu Tripathi <[email protected]>
  • Loading branch information
deepanshutr committed Sep 2, 2024
1 parent 3ef86fa commit c0fcb53
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func TestGetClassificationIDFromResponse(t *testing.T) {
want ids.ClassificationID
wantErr bool
}{
{"+ve", args{newAuxiliaryResponse(classificationID)}, classificationID, false},
{"+ve", args{newAuxiliaryResponse(nil)}, nil, false},
{"+ve", args{NewAuxiliaryResponse(classificationID)}, classificationID, false},
{"+ve", args{NewAuxiliaryResponse(nil)}, nil, false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down Expand Up @@ -66,8 +66,8 @@ func Test_newAuxiliaryResponse(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := newAuxiliaryResponse(tt.args.classificationID); !reflect.DeepEqual(got, tt.want) {
t.Errorf("newAuxiliaryResponse() = %v, want %v", got, tt.want)
if got := NewAuxiliaryResponse(tt.args.classificationID); !reflect.DeepEqual(got, tt.want) {
t.Errorf("NewAuxiliaryResponse() = %v, want %v", got, tt.want)
}
})
}
Expand Down

0 comments on commit c0fcb53

Please sign in to comment.