tsctests

package
v0.0.0-...-6fb55b7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMap

type FileMap map[string]any

type TestClock

type TestClock struct {
	// contains filtered or unexported fields
}

func (*TestClock) Now

func (t *TestClock) Now() time.Time

func (*TestClock) SinceStart

func (t *TestClock) SinceStart() time.Duration

type TestSys

type TestSys struct {
	// contains filtered or unexported fields
}

func NewTscSystem

func NewTscSystem(files FileMap, useCaseSensitiveFileNames bool, cwd string) *TestSys

func (*TestSys) DefaultLibraryPath

func (s *TestSys) DefaultLibraryPath() string

func (*TestSys) FS

func (s *TestSys) FS() vfs.FS

func (*TestSys) GetCurrentDirectory

func (s *TestSys) GetCurrentDirectory() string

func (*TestSys) GetEnvironmentVariable

func (s *TestSys) GetEnvironmentVariable(name string) string

func (*TestSys) GetTrace

func (s *TestSys) GetTrace(w io.Writer) func(str string)

func (*TestSys) GetWidthOfTerminal

func (s *TestSys) GetWidthOfTerminal() int

func (*TestSys) Now

func (s *TestSys) Now() time.Time

func (*TestSys) OnBuildStatusReportEnd

func (s *TestSys) OnBuildStatusReportEnd(w io.Writer)

func (*TestSys) OnBuildStatusReportStart

func (s *TestSys) OnBuildStatusReportStart(w io.Writer)

func (*TestSys) OnEmittedFiles

func (s *TestSys) OnEmittedFiles(result *compiler.EmitResult, mTimesCache *collections.SyncMap[tspath.Path, time.Time])

func (*TestSys) OnListFilesEnd

func (s *TestSys) OnListFilesEnd(w io.Writer)

func (*TestSys) OnListFilesStart

func (s *TestSys) OnListFilesStart(w io.Writer)

func (*TestSys) OnProgram

func (s *TestSys) OnProgram(program *incremental.Program)

func (*TestSys) OnStatisticsEnd

func (s *TestSys) OnStatisticsEnd(w io.Writer)

func (*TestSys) OnStatisticsStart

func (s *TestSys) OnStatisticsStart(w io.Writer)

func (*TestSys) OnWatchStatusReportEnd

func (s *TestSys) OnWatchStatusReportEnd()

func (*TestSys) OnWatchStatusReportStart

func (s *TestSys) OnWatchStatusReportStart()

func (*TestSys) SinceStart

func (s *TestSys) SinceStart() time.Duration

func (*TestSys) WriteOutputIsTTY

func (s *TestSys) WriteOutputIsTTY() bool

func (*TestSys) Writer

func (s *TestSys) Writer() io.Writer

Jump to

Keyboard shortcuts

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