testutil

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 6 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

Index

Constants

This section is empty.

Variables

View Source
var DummySnippet = TestSnippet{ID: "uuid-x", Title: "title-2", Language: model.LanguageBash, Tags: []string{}, Content: "testSnippetContent"}

Functions

func NewTestSystem

func NewTestSystem(options ...system.Option) *system.System

func StripANSI added in v1.0.0

func StripANSI(str string) string

Types

type TestSnippet added in v1.2.0

type TestSnippet struct {
	ID   string
	Tags []string

	Title    string
	Content  string
	Language model.Language
}

func (TestSnippet) Format added in v1.2.0

func (t TestSnippet) Format(values []string, options model.SnippetFormatOptions) string

func (TestSnippet) GetContent added in v1.2.0

func (t TestSnippet) GetContent() string

func (TestSnippet) GetID added in v1.2.0

func (t TestSnippet) GetID() string

func (TestSnippet) GetLanguage added in v1.2.0

func (t TestSnippet) GetLanguage() model.Language

func (TestSnippet) GetParameters added in v1.2.0

func (t TestSnippet) GetParameters() []model.Parameter

func (TestSnippet) GetTags added in v1.2.0

func (t TestSnippet) GetTags() []string

func (TestSnippet) GetTitle added in v1.2.0

func (t TestSnippet) GetTitle() string

func (TestSnippet) String added in v1.2.0

func (t TestSnippet) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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