testutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package testutil provides test helpers and fixtures for Telescope tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSpecs

func AllSpecs() []specs.Spec

AllSpecs returns every registered test specification from the specs registry.

func BenchmarkSpecs

func BenchmarkSpecs() []specs.Spec

BenchmarkSpecs returns a curated set of specs for benchmarking (one per size tier).

func JSONLanguage

func JSONLanguage() *tree_sitter.Language

JSONLanguage returns the tree-sitter JSON language.

func ParseJSON

func ParseJSON(t *testing.T, content []byte) *tree_sitter.Tree

ParseJSON parses JSON content into a tree-sitter tree.

func ParseYAML

func ParseYAML(t *testing.T, content []byte) *tree_sitter.Tree

ParseYAML parses YAML content into a tree-sitter tree.

func YAMLLanguage

func YAMLLanguage() *tree_sitter.Language

YAMLLanguage returns the tree-sitter YAML language.

Types

This section is empty.

Directories

Path Synopsis
Package specs provides embedded OpenAPI test specifications for use in tests and benchmarks.
Package specs provides embedded OpenAPI test specifications for use in tests and benchmarks.

Jump to

Keyboard shortcuts

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