首页> 外文期刊>The Computer Journal >String Generation for Testing Regular Expressions
【24h】

String Generation for Testing Regular Expressions

机译:用于测试正则表达式的字符串生成

获取原文
获取原文并翻译 | 示例
       

摘要

Regular expressions have been widely studied due to their expressiveness and flexibility for various applications. A common yet challenging way to ensure the quality of regular expressions is regular expression testing. In this work, we study coverage criteria-based string generation for testing regular expressions. First, we propose a notion of pairwise coverage criterion for regular expressions and analyze the subsumption relationships with existing coverage criteria for both regular grammars and finite automata. Second, we design an algorithm that given as an input a regular expression, outputs a small set of strings that satisfies the pairwise coverage criterion. Third, we extend the coverage criterion and the generation algorithm to further deal with regular operators counting and interleaving. Fourth, we experimentally demonstrate the effectiveness and efficiency of our algorithms by testing element-type definitions of real-world XML schemas. Finally, we identify more applications of pairwise coverage and its corresponding generation algorithm and show that they can be used to generate characteristic samples for certain regular expression learning algorithms that follow Gold's learning paradigm of learning (identification) in the limit. These results are not only theoretically meaningful but also useful for practical applications involved with regular expressions.
机译:由于它们对各种应用的表达性和灵活性,已被广泛研究了正则表达式。一种常见但具有挑战性的方式,以确保正则表达式的质量是正规表达测试。在这项工作中,我们研究了覆盖基于标准的字符串生成,用于测试正则表达式。首先,我们提出了对正则表达式的成对覆盖标准的概念,并分析了与常规语法和有限自动机的现有覆盖标准的加载关系。其次,我们设计一种作为输入正则表达式的算法,输出一组满足成对覆盖标准的一小组字符串。第三,我们扩展了覆盖范围和生成算法,以进一步处理常规操作员计数和交织。第四,我们通过测试现实世界XML模式的元素型定义来实验地展示了算法的有效性和效率。最后,我们确定了更多的成对覆盖范围和其相应的生成算法的应用,并显示它们可用于为某些正则表达式学习算法生成特征样本,以便在极限中遵守学习(识别)的Gold学习范式的某些正则表达式学习算法。这些结果不仅是从理论上有意义的,而且对于涉及正则表达式的实际应用也是有用的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号