LCOV - code coverage report
Current view: top level - raw - errors.go Coverage Total Hit
Test: coverage.lcov Lines: 100.0 % 4 4
Test Date: 2026-11-19 00:25:22 Functions: - 0 0

            Line data    Source code
       1              : package raw
       2              : 
       3              : import "fmt"
       4              : 
       5              : // KeyNotFoundError represents an error when a key is not found in a collection
       6              : type KeyNotFoundError struct {
       7              :         Key        string
       8              :         Collection string
       9              : }
      10              : 
      11              : func (e KeyNotFoundError) Error() string {
      12            1 :         return fmt.Sprintf("key not found: %s in %s", e.Key, e.Collection)
      13            1 : }
      14              : 
      15              : // NewKeyNotFoundError creates a new KeyNotFoundError
      16              : func NewKeyNotFoundError(key, collection string) error {
      17            1 :         return KeyNotFoundError{Key: key, Collection: collection}
      18            1 : }
        

Generated by: LCOV version 2.0-1