<commit_before>package diffstore

import (
	"fmt"
	"sort"
	"testing"

	assert "github.com/stretchr/testify/require"

	"go.skia.org/infra/go/fileutil"
	"go.skia.org/infra/go/testutils"
	"go.skia.org/infra/go/timer"
	"go.skia.org/infra/go/util"
	"go.skia.org/infra/golden/go/types"
)

// func (d *MemDiffStore) WarmDigests(priority int64, digests []string) {
// func (d *MemDiffStore) Warm(priority int64, leftDigests []string, rightDigests []string) {
// func (d *MemDiffStore) KeepDigests(Digests []string) {}
// func (d *MemDiffStore) Get(priority int64, leftDigests, rightDigests []string) (map[string]map[string]*DiffRecord, error) {
// func (d *MemDiffStore) diffMetricsWorker(priority int64, id string) (interface{}, error) {
// func (d *MemDiffStore) saveDiffInfoAsync(diffID, leftDigest, rightDigest string, dr *DiffRecord, imgBytes []byte) {
// func (d *MemDiffStore) loadDiffMetric(id string) (*DiffRecord, error) {
// func (d *MemDiffStore) saveDiffMetric(id string, dr *DiffRecord) error {

const TEST_N_DIGESTS = 20

func TestDiffStore(t *testing.T) {
	// Get a small tile and get them cached.
	baseDir := TEST_DATA_BASE_DIR + "-diffstore"
	client, tile := getSetupAndTile(t, baseDir)
	defer testutils.RemoveAll(t, baseDir)
<commit_msg>Add SkipShort to TestDiffStore test<commit_after>package diffstore

import (
	"fmt"
	"sort"
	"testing"

	assert "github.com/stretchr/testify/require"

	"go.skia.org/infra/go/fileutil"
	"go.skia.org/infra/go/testutils"
	"go.skia.org/infra/go/timer"
	"go.skia.org/infra/go/util"
	"go.skia.org/infra/golden/go/types"
)

const TEST_N_DIGESTS = 20

func TestDiffStore(t *testing.T) {
	testutils.SkipIfShort(t)

	// Get a small tile and get them cached.
	baseDir := TEST_DATA_BASE_DIR + "-diffstore"
	client, tile := getSetupAndTile(t, baseDir)
	defer testutils.RemoveAll(t, baseDir)

{'fraction_non_alphanumeric': 0.1456736035049288, 'fraction_numerical': 0.0065717415115005475, 'mean_word_length': 4.970588235294118, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6328728', 'n_tokens_mistral': 712, 'n_tokens_neox': 686, 'n_words': 145}