Systematic generation of glass-box test cases for functional logic programs

  • Authors:
  • Sebastian Fischer;Herbert Kuchen

  • Affiliations:
  • Christian-Albrechts-University of Kiel;University of Münster

  • Venue:
  • Proceedings of the 9th ACM SIGPLAN international conference on Principles and practice of declarative programming
  • Year:
  • 2007

Quantified Score

Hi-index 0.02

Visualization

Abstract

We employ the narrowing-based execution mechanism of the functional logic programming language Curry in order to automatically generate a system of test cases for glass-box testing of Curry programs. The test cases for a given function are computed by narrowing a call to that function with initially uninstantiated arguments. The generated test cases are produced w.r.t. a selected code-coverage criterion such as control-flow coverage. Besides an adaption of the notion of control-flow coverage to functional (logic) programming, we present a novel coverage criterion for this programming paradigm. A particular difficulty of the adaption is the handling of laziness.