makeForTest() — react Function Reference
Architecture documentation for the makeForTest() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 385ee3f4_ba32_7a12_400c_d4c76675094a["makeForTest()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] 385ee3f4_ba32_7a12_400c_d4c76675094a -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c style 385ee3f4_ba32_7a12_400c_d4c76675094a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 1158–1169
makeForTest(test) {
const context = this.loopContext;
const forkContext = this.forkContext;
const endOfInitSegments = forkContext.head;
const testSegments = forkContext.makeNext(-1, -1);
// Update state.
context.test = test;
context.endOfInitSegments = endOfInitSegments;
context.continueDestSegments = context.testSegments = testSegments;
forkContext.replaceHead(testSegments);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does makeForTest() do?
makeForTest() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is makeForTest() defined?
makeForTest() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 1158.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free