Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-94942

Add tests for IDL codegen

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • Programmability 2024-11-11, Programmability 2024-11-25, Programmability 2024-12-09

       IDL code generation has been a source of minor bugs and is perhaps not as well-covered by unit tests as it should be. In idl/tests/test_generator.py, at a minimum, we should add:

      • Test generated parse and serialization functions for relevant combinations of IDL field types (e.g. variant<array<>>)
      • Testing for constructors which use both NamespaceString and DBName parameters
      • Test generated code for built in IDL validators at edge cases
      • Test IDL files directly from a path
      • Test the generated code for the definitions of the IDL structs found in unittest.idl

            Assignee:
            alex.li@mongodb.com Alex Li
            Reporter:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: