Add tests for IDL codegen

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

       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
            Reporter:
            Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: