github.com/hungdoo/bot@v0.0.0-20240325145135-dd1f386f7b81/src/packages/graphql/client_test.go (about) 1 package graphql 2 3 import ( 4 "context" 5 "fmt" 6 "testing" 7 ) 8 9 func TestGraphQlClient(it *testing.T) { 10 it.Run("Query Venus subgraph", func(t *testing.T) { 11 client := GetClient() 12 err := client.Query(context.Background(), &MarketQuery, nil) 13 if err != nil { 14 fmt.Println(err) 15 } 16 fmt.Printf("%+v\n", MarketQuery) 17 }) 18 }