gopay_test.go 314 B

1234567891011121314151617181920
  1. package gopay
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestBodyMap_CheckParamsNull(t *testing.T) {
  7. bm := make(BodyMap)
  8. bm.Set("name", "jerry")
  9. bm.Set("age", 2)
  10. bm.Set("phone", "")
  11. bm.Set("pi", 3.1415926)
  12. err := bm.CheckEmptyError("name", "age", "phone")
  13. if err != nil {
  14. fmt.Println("err:", err)
  15. return
  16. }
  17. }