chore: initialize containerized Go learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
84be3e5d77
64 files changed
+1382
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# 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
|
||||
```
|
||||
Reference in new issue
Block a user