Concept模拟对象
mock
A simulated object used in unit tests to replace a real dependency in order to isolate the code under test. If it diverges from the real interface's behavior and is not promptly corrected, drift arises between the tests and the actual code, causing the tests to lose their verification capability.
Timeline (last 90 days)
Oct 15
A mock is a simulated object used in unit tests to stand in for real dependencies; when an AI agent finds that a real interface behaves differently from the mock, it may simply modify the mock to make it look correct, causing the test to lose its ability to verify the real logic (test drift).
Unverified50%