## Unit Tests One test file per exported function (`test-wri_overview.R`, `test-layer_info.R`, `test-get_layer.R`). For each function, test at least: - [ ] **Success**: valid inputs return the expected output type and structure - [ ] **Input validation**: invalid inputs (wrong bbox length, out-of-extent, non-numeric) throw informative errors - [ ] **Edge cases**: bbox at dataset edge, requesting a layer that exists but isn't hosted yet - [ ] **Return structure**: for `get_layer`, confirm output is a `SpatRaster`, has correct CRS (EPSG:5070), and extent matches input bbox General: - [ ] One `test_that()` block per behavior - [ ] All tests pass `check()` without warnings or notes
Unit Tests
One test file per exported function (
test-wri_overview.R,test-layer_info.R,test-get_layer.R).For each function, test at least:
get_layer, confirm output is aSpatRaster, has correct CRS (EPSG:5070), and extent matches input bboxGeneral:
test_that()block per behaviorcheck()without warnings or notes