Add Catch2 unit tests for __layered_derive_layered_uri

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Not Applicable
    • None
    • Storage Engines
    • 814.52
    • None
    • None

      Problem

      __layered_derive_layered_uri in src/conn/conn_layered_ingest.c transforms an ingest URI (e.g. file:foo.wt_ingest) into its parent layered URI (layered:foo) by stripping the file: prefix and .wt_ingest suffix. This logic has no dedicated unit test coverage.

      Definition of Done

      Add Catch2 unit tests covering:

      • Happy path: valid ingest URIs are correctly converted
      • Invalid inputs: missing file: prefix, missing .wt_ingest suffix, or malformed URIs return EINVAL

      Notes

      The function is currently static; it may need to be exposed or tested via a thin wrapper.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: