// FetchTestAccountDetails returns TestAccountDetails
// of the user running the tests.
//
// Use this helper to fetch the username and email
// address associated with the token used to run the tests.
FetchTestAccountDetails returns TestAccountDetails
of the user running the tests.

Use this helper to fetch the username and email
address associated with the token used to run the tests.
// FetchTestAccountDetails returns TestAccountDetails // of the user running the tests . // // Use this helper to fetch the username and email // address associated with the token used to run the tests .
func FetchTestAccountDetails(t *testing.T, client *Client) *TestAccountDetails {
	tad := &TestAccountDetails{}
	req, err := client.newRequest("GET", "account/details", nil)
	if err != nil {
		t.Fatalf("could not create account details request: %v", err)
	}
	ctx := context.Background()
	err = client.do(ctx, req, tad)
	if err != nil {
		t.Fatalf("could not fetch test user details: %v", err)
	}
	return tad
}
func FetchTestAccountDetails ( t * testing . T , client * Client ) * TestAccountDetails { tad := & TestAccountDetails { } req , err := client . newRequest ( " " , " " , nil ) if err != nil { t . Fatalf ( " " , err ) } ctx := context . Background ( ) err = client . do ( ctx , req , tad ) if err != nil { t . Fatalf ( " " , err ) } return tad }
FetchTestAccountDetails returns TestAccountDetails
of the user running the tests.
FetchTestAccountDetails returns TestAccountDetails of the user running the tests .