Saved in:
| Main Authors: | , |
|---|---|
| Format: | Preprint |
| Published: |
2025
|
| Subjects: | |
| Online Access: | https://arxiv.org/abs/2502.14465 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1866909505312260096 |
|---|---|
| author | Passarelli, Angelo Ferrari, Gian-Luigi |
| author_facet | Passarelli, Angelo Ferrari, Gian-Luigi |
| contents | Coverage Types provide a suitable type mechanism that integrates under-approximation logic to support Property-Based Testing. They are used to type the return value of a function that represents an input test generator. This allows us to statically assert that an input test generator not only produces valid input tests but also generates all possible ones, ensuring completeness. In this paper, we extend the coverage framework to guarantee the correctness of Property-Based Testing with respect to resource usage in the input test generator. This is achieved by incorporating into Coverage Types a notion of effect, which represents an over-approximation of operations on relevant resources. Programmers can define resource usage policies through logical annotations, which are then verified against the effect associated with the Coverage Type. |
| format | Preprint |
| id |
arxiv_https___arxiv_org_abs_2502_14465 |
| institution | arXiv |
| publishDate | 2025 |
| record_format | arxiv |
| spellingShingle | Coverage Types for Resource-Based Policies Passarelli, Angelo Ferrari, Gian-Luigi Logic in Computer Science Coverage Types provide a suitable type mechanism that integrates under-approximation logic to support Property-Based Testing. They are used to type the return value of a function that represents an input test generator. This allows us to statically assert that an input test generator not only produces valid input tests but also generates all possible ones, ensuring completeness. In this paper, we extend the coverage framework to guarantee the correctness of Property-Based Testing with respect to resource usage in the input test generator. This is achieved by incorporating into Coverage Types a notion of effect, which represents an over-approximation of operations on relevant resources. Programmers can define resource usage policies through logical annotations, which are then verified against the effect associated with the Coverage Type. |
| title | Coverage Types for Resource-Based Policies |
| topic | Logic in Computer Science |
| url | https://arxiv.org/abs/2502.14465 |