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: current_test.go
    path of file: ./repos/grafana/pkg/registry/apis/featuretoggle
    
    the code of the file until where you have to start completion: package featuretoggle

import (
	"bytes"
	"encoding/json"
	"io"
	"net/http"
	"net/http/httptest"
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/requir
    
func findResult(t *testing.T, result v0alpha1.ResolvedToggleState, name string) (v0alpha1.ToggleStatus, bool) {
	t.Helper()

	for _, t := range result.Toggles {
		if t.Name == name {
			return t, true
		}
	}
	return v0alpha1.ToggleStatus{}, false
}