⚡
ForceHires
beta
Jobs
Practice
Drill
My Profile
Recruiters
Sign in
← All questions
Apex
Hard
Governor limits and Test.startTest()
Why do test classes call Test.startTest() and Test.stopTest() around the code being tested?
A
They mark the code so the test coverage calculator includes it
B
They give the tested code a fresh set of governor limits and force queued async jobs to run synchronously at stopTest()
C
They roll back all DML performed between the two calls
D
They are required syntax — a test method will not compile without them
Submit answer