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

Method printStateDiff

internal/fourslash/statebaseline.go:243–253  ·  view source on GitHub ↗
(t *testing.T, w io.Writer)

Source from the content-addressed store, hash-verified

241}
242
243func (f *FourslashTest) printStateDiff(t *testing.T, w io.Writer) {
244 if !f.stateBaseline.isInitialized {
245 return
246 }
247 session := f.client.Server.Session()
248 snapshot := session.Snapshot()
249
250 f.printProjectsDiff(t, snapshot, w)
251 f.printOpenFilesDiff(t, snapshot, w)
252 f.printConfigFileRegistryDiff(t, snapshot, w)
253}
254
255func (f *FourslashTest) printProjectsDiff(t *testing.T, snapshot *project.Snapshot, w io.Writer) {
256 t.Helper()

Callers 1

serializedStateMethod · 0.95

Calls 5

printProjectsDiffMethod · 0.95
printOpenFilesDiffMethod · 0.95
SnapshotMethod · 0.80
SessionMethod · 0.45

Tested by

no test coverage detected