Switch to cupaloy for snapshots

Slightly uglier filenames, but less code and free diffing!  Approved in
ADR-466 for Khan use.  Fixes #23.
This commit is contained in:
Ben Kraft
2021-06-03 12:08:56 -07:00
parent 3c11f07e62
commit 1f442da041
63 changed files with 78 additions and 85 deletions
@@ -0,0 +1,40 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"time"
"github.com/Khan/genqlient/graphql"
)
// convertTimezoneResponse is returned by convertTimezone on success.
type convertTimezoneResponse struct {
Convert time.Time `json:"convert"`
}
func convertTimezone(
client graphql.Client,
dt time.Time,
tz string,
) (*convertTimezoneResponse, error) {
variables := map[string]interface{}{
"dt": dt,
"tz": tz,
}
var retval convertTimezoneResponse
err := client.MakeRequest(
nil,
"convertTimezone",
`
query convertTimezone ($dt: DateTime!, $tz: String) {
convert(dt: $dt, tz: $tz)
}
`,
&retval,
variables,
)
return &retval, err
}