MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / commitTree

Function commitTree

packages/core/src/renderer/__tests__/renderer.text.test.ts:229–237  ·  view source on GitHub ↗
(vnode: VNode)

Source from the content-addressed store, hash-verified

227}
228
229function commitTree(vnode: VNode) {
230 const allocator = createInstanceIdAllocator(1);
231 const committed = commitVNodeTree(null, vnode, { allocator });
232 assert.equal(committed.ok, true, "commit should succeed");
233 if (!committed.ok) {
234 assert.fail("commit should succeed");
235 }
236 return committed.value.root;
237}
238
239function renderBytes(
240 vnode: VNode,

Callers 1

renderBytesFunction · 0.70

Calls 3

commitVNodeTreeFunction · 0.85
failMethod · 0.80

Tested by

no test coverage detected