MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertSnapshot

Function assertSnapshot

packages/effect/test/Graph.test.ts:34–39  ·  view source on GitHub ↗
(
  graph: Graph.Graph<N, E, T> | Graph.MutableGraph<N, E, T>,
  expected: Graph.Snapshot<N, E, T>
)

Source from the content-addressed store, hash-verified

32}
33
34const assertSnapshot = <N, E, T extends Graph.Kind>(
35 graph: Graph.Graph<N, E, T> | Graph.MutableGraph<N, E, T>,
36 expected: Graph.Snapshot<N, E, T>
37): void => {
38 assert.deepStrictEqual(Graph.toSnapshot(graph), expected)
39}
40
41const assertPath = <E>(actual: Option.Option<Graph.PathResult<E>>, expected: Graph.PathResult<E>): void => {
42 assert.deepStrictEqual(actual, Option.some(expected))

Callers 1

Graph.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected