Author:
CLAESSEN KOEN,DUREGÅRD JONAS,PAŁKA MICHAŁ H.
Abstract
AbstractWe present a technique for automatically deriving test data generators from a given executable predicate representing the set of values we are interested in generating. The distribution of these generators is uniform over values of a given size. To make the generation efficient, we rely on laziness of the predicate, allowing us to prune the space of values quickly. In contrast, implementing test data generators by hand is labour intensive and error prone. Moreover, handwritten generators often have an unpredictable distribution of values, risking that some values are arbitrarily underrepresented. We also present a variation of the technique that has better performance, but where the distribution is skewed in a limited, albeit predictable way. Experimental evaluation of the techniques shows that the automatically derived generators are much easier to define than handwritten ones, and their performance, while lower, is adequate for some realistic applications.
Publisher
Cambridge University Press (CUP)
Cited by
18 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Study of several probability distribution functions for the Klein–Kramers equation;Modern Physics Letters B;2024-02-09
2. Generating Well-Typed Terms That Are Not “Useless”;Proceedings of the ACM on Programming Languages;2024-01-05
3. Merging Inductive Relations;Proceedings of the ACM on Programming Languages;2023-06-06
4. Parsing randomness;Proceedings of the ACM on Programming Languages;2022-10-31
5. A completely unique account of enumeration;Proceedings of the ACM on Programming Languages;2022-08-29