3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-09 01:11:55 +00:00

Daily Test Coverage Improver: Add comprehensive API AST map tests (#7890)

* Add comprehensive tests for AST map API functions

Improved test coverage from 0% to 84% for src/api/api_ast_map.cpp by adding comprehensive tests for:
- Basic map operations (creation, insertion, lookup, size)
- Map manipulation (overwrite values, erase entries, reset)
- Reference counting (inc_ref/dec_ref)
- String representation (to_string function)

This contributes 94 newly covered lines to overall project test coverage.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* staged files

* Delete coverage-steps.log

* Delete coverage-summary.txt

* Delete coverage.html

* Delete z3.log

---------

Co-authored-by: Daily Test Coverage Improver <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Don Syme 2025-09-17 01:26:07 +01:00 committed by GitHub
parent 9b88aaf134
commit ee083a2e6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 311 additions and 0 deletions

View file

@ -13,6 +13,7 @@ add_executable(test-z3
EXCLUDE_FROM_ALL
algebraic.cpp
algebraic_numbers.cpp
api_ast_map.cpp
api_bug.cpp
api.cpp
api_algebraic.cpp