toolconformance

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package toolconformance holds the tool conformance case table: every built-in tool returns its documented error codes, and its Data conforms to its declared OutputSchema. The tools package runs it against tools.For. Only tests import it.

code_search lives in its own module and is covered in codesearch/tool_test.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaseNames

func CaseNames() []string

CaseNames lists the case groups, sorted.

func RunGroup

func RunGroup(t *testing.T, id string, build Builder)

RunGroup runs the case group id, one of CaseNames, against the tools build returns.

Types

type Builder

type Builder func(t *testing.T, tree Tree) []core.Tool

Builder returns the built-in tools over a workspace holding tree.

type Entry

type Entry struct {
	Path string // slash-separated, relative
	Body string
	Mode fs.FileMode
	Dir  bool
}

Entry is one file or directory of a workspace tree.

type Tree

type Tree []Entry

Tree is a workspace's contents, in order.

func BaseTree

func BaseTree() Tree

BaseTree is the small tree every conformance case runs against: a Go file, a 10-byte text file and a directory.

func (Tree) Write

func (tr Tree) Write(t testing.TB, dir string)

Write creates tree under dir.

Jump to

Keyboard shortcuts

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