What work was completed during the said period?
- Implemented unit tests for service loader functionalities[1][2][3].
- Implement unit tests for service_json functionality[4][5][6].
- Refactored existing codebase to improve readability and maintainability.
Explanation of the unit tests:
- Test: test of jsonToMaps() valid input- Verifies jsonToMaps correctly parses a valid JSON string into a maps structure.
- Test: test of jsonToMaps() invalid input- Ensures jsonToMaps handles invalid JSON strings gracefully, returning NULL.
- Test: test of mapToJson() valid input- Confirms mapToJson accurately converts a map structure to a valid JSON string.
- Test: test of mapToJson() empty input- Checks that mapToJson handles empty map structures by returning an empty JSON object.
- Test: test of elementsToJson() valid input- Verifies elementsToJson correctly converts an elements structure to a JSON string.
- Test: test of elementsToJson() empty input- Ensures elementsToJson handles empty elements structures by returning an empty JSON object.
What do I plan to do the next week?
- Continue refining and expanding unit tests for service_json.
- Implement unit tests for internal service & internal server.
- 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/dhruvmehtaaa/ZOO-Project/blob/Week-8/zoo-project/zoo-kernel/service_loader.c
[2]https://drive.google.com/file/d/1SjCgUR1tr6Yzb5Wyz4rSBD35QMZ6iVJ_/view?usp=sharing
[3]https://github.com/dhruvmehtaaa/ZOO-Project/blob/Week-8/testing/unit_tests/service_loader.c
[4]https://github.com/dhruvmehtaaa/ZOO-Project/blob/Week-8/zoo-project/zoo-kernel/service_json.c
[5]https://drive.google.com/file/d/1miBhsh4egLitqRhtrFXvoOI36LBK9i-i/view?usp=sharing
[6]https://github.com/dhruvmehtaaa/ZOO-Project/blob/Week-8/testing/unit_tests/service_json.c