# 04 — Dobre Praktyki Testowania (`t.TempDir()`, In-Memory Fakes) ## Zadania (`testing_ex.go`) 1. `WriteAndReadLines(path string, lines []string) ([]string, error)` — zapisz linie do pliku i odczytaj je z powrotem. 2. `FeatureFlags.IsEnabled(name string) bool` — korzysta z małego interfejsu `Store` (łatwego do testowania z In-Memory Fake bez mocków). ## Uruchomienie testów ```bash make test PKG=./exercises/02-engineering-2026/04-testing-best-practices ```