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: grpc_log_test.go
    path of file: ./repos/cockroach/pkg/util/grpcutil
    
    the code of the file until where you have to start completion: // Copyright 2017 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

package grpcutil

import (
	"math"
	"testing"

	"github.com/cockroachdb/cockroach/pkg/util/log/severity"
	"github.com/stretchr/testify/require"
)

func TestGRPCLogger(t *testing.T) {
	{
		// If input < env var severity, use input.
		l := getGRPCLogger(severity.INFO, "warning", "")
		require.Equal(t, l.sev, severity.INFO)
	}

	{
		// If env var smaller than info, use env var.
		l := getGRPCLogger(severity.ERROR, "info", "")
		require.Equal(t, l.sev, severity.INFO)
	}

	{
		// When threshold is ERROR, should not log WARNING or below.
		l := getGRPCLogger(severity.ERROR, "", "")
		require.False(t, l.shouldLog(severity.WARNING, 1 /* de
    
func TestGRPCLogger(t *testing.T) {
	{
		// If input < env var severity, use input.
		l := getGRPCLogger(severity.INFO, "warning", "")
		require.Equal(t, l.sev, severity.INFO)
	}

	{
		// If env var smaller than info, use env var.
		l := getGRPCLogger(severity.ERROR, "info", "")
		require.Equal(t, l.sev, severity.INFO)
	}

	{
		// When threshold is ERROR, should not log WARNING or below.
		l := getGRPCLogger(severity.ERROR, "", "")
		require.False(t, l.shouldLog(severity.WARNING, 1 /* depth */))
		require.False(t, l.shouldLog(severity.INFO, 1 /* depth */))
		require.True(t, l.shouldLog(severity.ERROR, 1 /* depth */))
	}

	{
		// When verbosity is nonzero, l.V() should reflect this.
		//
		// Also, we log at all severities when verbosity is
		// not zero.
		l := getGRPCLogger(severity.ERROR, "", "1000")
		require.Equal(t, l.grpcVerbosityLevel, 1000)
		require.True(t, l.V(1000))
		require.True(t, l.shouldLog(severity.INFO, 1 /* depth */))
		require.True(t, l.shouldLog(severity.WARNING, 1 /* depth */))
		require.True(t, l.shouldLog(severity.ERROR, 1 /* depth */))
		// NB: this could fail if we run with `--vmodule=*=<maxint32>`
		// but the hope is that we don't do that.
		require.False(t, l.V(math.MaxInt32))
	}
}