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

Add tests for IDL codegen

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability

       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:
            Unassigned Unassigned
            Reporter:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: