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

Method serializedState

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

Source from the content-addressed store, hash-verified

98}
99
100func (f *FourslashTest) serializedState(t *testing.T) string {
101 t.Helper()
102
103 var builder strings.Builder
104 f.stateBaseline.fsDiffer.BaselineFSwithDiff(&builder)
105 if strings.TrimSpace(builder.String()) == "" {
106 builder.Reset()
107 }
108
109 f.printStateDiff(t, &builder)
110 return builder.String()
111}
112
113type projectInfo = *compiler.Program
114

Callers 1

baselineStateMethod · 0.95

Calls 5

printStateDiffMethod · 0.95
BaselineFSwithDiffMethod · 0.80
HelperMethod · 0.65
StringMethod · 0.65
ResetMethod · 0.45

Tested by

no test coverage detected