Skip to content

Commit

Permalink
Merge pull request #5 from SteppenHorde/fix_typo
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
seacomandor authored Dec 18, 2019
2 parents 38f3897 + c9d3527 commit 7088820
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/vseinstrumentiru/dpd

require github.com/fiorix/wsdl2go v1.4.6

go 1.13
4 changes: 2 additions & 2 deletions orderRequestBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func (o *Order) SetCargoValue(value float64) *Order {
return o
}

//SerCargoCategory ...
func (o *Order) SerCargoCategory(category string) *Order {
//SetCargoCategory ...
func (o *Order) SetCargoCategory(category string) *Order {
o.CargoCategory = &category

return o
Expand Down
6 changes: 3 additions & 3 deletions orderRequestBuilder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func TestOrder_SetCargoValue(t *testing.T) {
}
}

func TestOrder_SerCargoCategory(t *testing.T) {
func TestOrder_SetCargoCategory(t *testing.T) {
type args struct {
category string
}
Expand All @@ -571,8 +571,8 @@ func TestOrder_SerCargoCategory(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := tt.o.SerCargoCategory(tt.args.category); !reflect.DeepEqual(got, tt.want) {
t.Errorf("Order.SerCargoCategory() = %v, want %v", got, tt.want)
if got := tt.o.SetCargoCategory(tt.args.category); !reflect.DeepEqual(got, tt.want) {
t.Errorf("Order.SetCargoCategory() = %v, want %v", got, tt.want)
}
})
}
Expand Down

0 comments on commit 7088820

Please sign in to comment.