MCPcopy Index your code
hub / github.com/nodejs/node / testYAMLComment

Function testYAMLComment

tools/doc/deprecationCodes.mjs:37–47  ·  view source on GitHub ↗
(commentNode)

Source from the content-addressed store, hash-verified

35};
36
37const testYAMLComment = (commentNode) => {
38 try {
39 assert.match(
40 commentNode?.value?.substring(0, 21),
41 /^<!-- YAML\r?\nchanges:\r?\n/,
42 'Missing or ill-formed YAML comment.',
43 );
44 } catch (e) {
45 throw addMarkdownPathToErrorStack(e, commentNode);
46 }
47};
48
49const testDeprecationType = (paragraphNode) => {
50 try {

Callers 1

Calls 2

matchMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…