Unit testing verifies individual units saka code (functions, methods, classes) ing isolation — checking yen saben small piece works correctly dhewe. Unit tests iku fast, focused, lan form the foundation saka good testing strategy.
Apa iku unit test
A UNIT test verifies the smallest testable piece (a function/method) in ISOLATION:
→ test ONE thing; give inputs, check the output/behavior
→ ISOLATED from dependencies (database, network, other units) — mock/stub those
→ FAST (no real I/O), focused, deterministic
