package couponrpc import ( "testing" ) func Test_IsAvailable(t *testing.T) { dbname := "shop_v2" user_id := "2" product_id := "2" user_coupon_id := "3" res, err := IsAvailable(dbname, user_id, product_id, user_coupon_id) t.Log(res) t.Log(err) }