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

Write more extensive unit tests of validateBSON()

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.0.0
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible

      The validateBSON tests need improvement, in that they do not actively attempt to circumvent the validator. There are no tests of objects that are valid if you overrun the buffer, but not otherwise, no specific tests of subobjects that claim to be too large, etc. There are also only a few targeted tests of validating/rejecting specific field types.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: