<commit_before>package inmem_test

import (
	"context"
	"encoding/json"
	"testing"

	"github.com/influxdata/influxdb"
	"github.com/influxdata/influxdb/inmem"
	"github.com/influxdata/influxdb/kv"
	"github.com/influxdata/influxdb/snowflake"
)

var (
	taskBucket                              = []byte("tasksv1")
	organizationBucket                      = []byte("organizationsv1")
	authBucket                              = []byte("authorizationsv1")
	urmBucket                               = []byte("userresourcemappingsv1")
	idgen              influxdb.IDGenerator = snowflake.NewIDGenerator()
)

func BenchmarkFindTaskByID_CursorHints(b *testing.B) {
	kvs := inmem.NewKVStore()
	ctx := context.Background()
	_ = kvs.Update(ctx, func(tx kv.Tx) error {
		createData(b, tx)
		createTasks(b, tx)

		return nil
	})
<commit_msg>chore(inmem): Resolve staticcheck issue<commit_after>package inmem_test

import (
	"context"
	"encoding/json"
	"testing"

	"github.com/influxdata/influxdb"
	"github.com/influxdata/influxdb/inmem"
	"github.com/influxdata/influxdb/kv"
	"github.com/influxdata/influxdb/snowflake"
)

var (
	taskBucket                              = []byte("tasksv1")
	organizationBucket                      = []byte("organizationsv1")
	authBucket                              = []byte("authorizationsv1")
	idgen              influxdb.IDGenerator = snowflake.NewIDGenerator()
)

func BenchmarkFindTaskByID_CursorHints(b *testing.B) {
	kvs := inmem.NewKVStore()
	ctx := context.Background()
	_ = kvs.Update(ctx, func(tx kv.Tx) error {
		createData(b, tx)
		createTasks(b, tx)

		return nil
	})

{'fraction_non_alphanumeric': 0.12406015037593984, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 2.766509433962264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6674046', 'n_tokens_mistral': 570, 'n_tokens_neox': 554, 'n_words': 79}