GSoC 2024: Week 7 Report: Advancing the ZOO-Project testing capabilities

What work was completed during the said period?

  • Implemented unit tests for get service from YAML functionalities[1][2].
  • Implement unit tests for service_internal_python[3][4].
  • Refactored existing codebase to improve readability and maintainability.

Explanation of the unit tests:

  1. test_PyDict_FromMap: Verifies that a dictionary is correctly created from a single map with one key-value pair.
  2. test_PyDict_FromMaps: Ensures that a dictionary is properly created from a maps structure containing one map with a single key-value pair.
  3. test_PyDict_FromMapEmpty: Checks that passing a NULL map to PyDict_FromMap returns a NULL dictionary.
  4. test_PyDict_FromMapsEmpty: Confirms that passing a NULL maps structure to PyDict_FromMaps returns a NULL dictionary.
  5. test_PyDict_FromMapWithMultipleEntries: Tests the creation of a dictionary from a map with multiple key-value pairs.
  6. test_PyDict_FromMapsWithMultipleMaps: Validates that a dictionary is accurately constructed from a maps structure containing multiple maps, each with a single key-value pair.

What do I plan to do the next week?

  • Continue refining and expanding unit tests for service_internal_python.
  • Implement unit tests for service loader & service JSON.
  • Review and update documentation and tests to reflect any changes or new features.

Am I blocked on anything?

No, currently I am not blocked on anything.

Links:

[1]https://github.com/ZOO-Project/ZOO-Project/blob/main/zoo-project/zoo-kernel/service_yaml.c

[2]https://drive.google.com/file/d/12FBqVQUQkwh7Syr3aFIxvlgZBa4XJfG7/view?usp=sharing

[3]https://github.com/dhruvmehtaaa/ZOO-Project/blob/main/zoo-project/zoo-kernel/service_internal_python.c

[4]https://drive.google.com/file/d/100wp6_Ap3k3Epn91E6S-O7V0srfUbI2D/view?usp=sharing