首页> 外文会议>IEEE/ACM International Workshop on Automation of Software Test >Generating Random Structurally Rich Algebraic Data Type Values
【24h】

Generating Random Structurally Rich Algebraic Data Type Values

机译:生成随机结构丰富的代数数据类型值

获取原文

摘要

Automatic generation of random values described by algebraic data types (ADTs) is often a hard task. State-of-the-art random testing tools can automatically synthesize random data generators based on ADTs definitions. In that manner, generated values comply with the structure described by ADTs, something that proves useful when testing software which expects complex inputs. However, it sometimes becomes necessary to generate structural richer ADTs values in order to test deeper software layers. In this work we propose to leverage static information found in the codebase as a manner to improve the generation process. Namely, our generators are capable of considering how programs branch on input data as well as how ADTs values are built via interfaces. We implement a tool, responsible for synthesizing generators for ADTs values while providing compile-time guarantees about their distributions. Using compile-time predictions, we provide a heuristic that tries to adjust the distribution of generators to what developers might want. We report on preliminary experiments where our approach shows encouraging results.
机译:通过代数数据类型(ADTS)描述的自动生成随机值(ADTS)通常是一个硬任务。最先进的随机测试工具可以根据ADTS定义自动综合随机数据发生器。以这种方式,生成的值符合ADTS描述的结构,这些结构在测试期望复杂输入的软件时证明的东西。然而,有时变得必要生成结构更丰富的ADTS值,以便测试更深的软件层。在这项工作中,我们建议利用Codebase中发现的静态信息作为改善生成过程的方式。即,我们的生成器能够考虑程序如何分支在输入数据上以及ADTS值如何通过接口构建。我们实现了一个工具,负责合成发电机的ADTS值,同时提供关于其分布的编译时间保证。使用编译时间预测,我们提供了一种尝试将发电机分配调整到开发人员可能想要的启发式。我们报告了我们的方法显示令人鼓舞的结果的初步实验。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号