MCPcopy Create free account
hub / github.com/microsoft/typescript-go / baselineState

Method baselineState

internal/fourslash/statebaseline.go:86–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func (f *FourslashTest) baselineState(t *testing.T) {
87 t.Helper()
88
89 if !f.testData.isStateBaseliningEnabled() {
90 return
91 }
92
93 serialized := f.serializedState(t)
94 if serialized != "" {
95 f.stateBaseline.baseline.WriteString("\n")
96 f.stateBaseline.baseline.WriteString(serialized)
97 }
98}
99
100func (f *FourslashTest) serializedState(t *testing.T) string {
101 t.Helper()

Callers 11

InsertMethod · 0.95
InsertLineMethod · 0.95
BackspaceMethod · 0.95
DeleteAtCaretMethod · 0.95
PasteMethod · 0.95
ReplaceLineMethod · 0.95
ReplaceMethod · 0.95
VerifyRenameFailedMethod · 0.95
sendNotificationFunction · 0.80

Calls 3

serializedStateMethod · 0.95
HelperMethod · 0.65

Tested by

no test coverage detected