go-microservices-tuto/products/models/product_test.go
2020-07-14 18:46:39 +02:00

18 lines
207 B
Go

package models
import "testing"
func TestValidation(t *testing.T) {
p := &Product{
Name: "Frappe",
Price: 1.1,
SKU: "a-adfg-fdds",
}
err := p.Validate()
if err != nil {
t.Error(err)
}
}