lstestutil

package
v0.0.0-...-7d7180d Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marker

type Marker struct {
	Filename   string
	Position   int
	LSPosition lsproto.Position
	Name       string
}

type TestData

type TestData struct {
	Files           []*TestFileInfo
	MarkerPositions map[string]*Marker
	//markers         []*Marker
	/**
	 * Inserted in source files by surrounding desired text
	 * in a range with `[|` and `|]`. For example,
	 *
	 * [|text in range|]
	 *
	 * is a range with `text in range` "selected".
	 */
	Ranges markerRange
}

func ParseTestData

func ParseTestData(basePath string, contents string, fileName string) TestData

type TestFileInfo

type TestFileInfo struct {
	Filename string
	// The contents of the file (with markers, etc stripped out)
	Content string
}

func (*TestFileInfo) FileName

func (t *TestFileInfo) FileName() string

FileName implements ls.Script.

func (*TestFileInfo) Text

func (t *TestFileInfo) Text() string

Text implements ls.Script.

Jump to

Keyboard shortcuts

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