harness

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package harness exercises persisted Unicode-sensitive keys in real record stores.

Index

Constants

This section is empty.

Variables

View Source
var CollationTexts = []string{
	"a", "A", "á", "a\u0301", "ä", "z", "å", "İ", "ı", "Σ", "ς", "\u0264", "\ua7cb", "\U00018cff", "\U000323b0", "\U0002ebf0", "file2", "file10", "file\U00010d50", "file\U00011de0", "\U0001ccd6",
}
View Source
var Texts = []string{
	"Hello café hello WORLD", "İstanbul ıi I", "finance fl Dž", "ABC123 𝐀𝐁C 𝟙𝟚",
	"\u1c89 \ua7cb \ua7ce \ua7f1 \U0001ccd6", "a\u1acfb a\u0897b", "\u0264 AΣʕ", "ſt st ΐ ΐ ΰ ΰ",
	"\U00018cff \U000323b0 \U0002ebf0", "file2 file10 file\U00010d50 file\U00011de0", "x:y ĿΣ ΑΣ\u037a \U00010780Σ", "a\ufffdb",
}

Texts retains version-delta witnesses, shared Java cases, and the existing Go-v0 sigma/segmentation differences. Persisted records require valid UTF-8.

Functions

This section is empty.

Types

type KV

type KV struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Posting

type Posting struct {
	Key       string  `json:"key"`
	Value     string  `json:"value"`
	Token     string  `json:"token"`
	Customer  int64   `json:"customer"`
	Positions []int64 `json:"positions"`
}

type Report

type Report struct {
	Schema int        `json:"schema"`
	Stores []Snapshot `json:"stores"`
}

func Run

func Run(ctx context.Context, raw fdb.Database, prefix, operation string) (Report, error)

Run performs one committed operation over the same 19 isolated stores, then reads committed bytes in separate transactions. Prefix is a tuple string, not a directory-layer allocation, so another compiler-built process can reopen it.

type Snapshot

type Snapshot struct {
	Name     string    `json:"name"`
	Records  []KV      `json:"records"`
	Index    []KV      `json:"index"`
	Counts   []KV      `json:"counts"`
	Postings []Posting `json:"postings"`
	Order    []string  `json:"order"`
	Lookups  []int     `json:"lookups"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL