/** * View Data Layer Tests - Drivers Functionality * * This test file will cover the view data layer for drivers functionality. * * The view data layer is responsible for: * - DTO → UI model mapping * - Formatting, sorting, and grouping * - Derived fields and defaults * - UI-specific semantics * * This layer isolates the UI from API churn by providing a stable interface * between the API layer and the presentation layer. * * Test coverage will include: * - Driver list data transformation and sorting * - Individual driver profile view models * - Driver statistics and metrics formatting * - Derived driver fields (performance ratings, rankings, etc.) * - Default values and fallbacks for driver views * - Driver-specific formatting (lap times, points, positions, etc.) * - Data grouping and categorization for driver components * - Driver search and filtering view models * - Driver comparison data transformation */