You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: getconfig_test.go
    path of file: ./repos/magic-modules/mmv1/third_party/tgc
    
    the code of the file until where you have to start completion: package google

import (
	"context"
	"net/http"
	"os"
	"testing"

	"github.com/stretchr/testify/assert"

	transport_tpg "github.com/hashicorp/terraform-provider-google-beta/google-beta/transport"
)

type configAttrGetter func(cfg *transport_tpg.Config) string

func getCredentials(cfg *tra
    
func TestNewConfigUserAgent_usesPassedClient(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping integration test in short mode.")
		return
	}
	ctx := context.Background()
	offline := false
	client := &http.Client{}
	cfg, err := NewConfig(ctx, "project", "", "", offline, "", client)
	if err != nil {
		t.Fatalf("error building config: %s", err)
	}

	assert.Exactly(t, client, cfg.Client)
}