Design Assertions: Executable Assertions for Design Constraints

被引:0
|
作者
Cheon, Yoonsik [1 ]
机构
[1] Univ Texas El Paso, El Paso, TX 79968 USA
关键词
Assertion; Abstract model; Assertion-only method; Design constraint; Dart;
D O I
10.1007/978-3-031-10548-7_45
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
An assertion is a Boolean expression embedded in a program that must hold during the execution. Executable assertions are a simple but practical way to check assumptions and code logic at runtime. Assertions are written by referring to concrete program states. In this paper, we recognize a variety of assertions that we call design assertions. These are assertions written to ensure design constraints and properties, not detailed implementation decisions, and thus can detect major problems in the implementation such as design drift or corrosion. However, they are written by referring to concrete program states, thus causing readability and maintenance problems. To address these problems, we propose to write design constraints at a higher abstraction level by referring to abstract program states. We explain our approach using the Dart/Flutter platform, but it should work in other languages and platforms with similar assertion facilities.
引用
收藏
页码:617 / 631
页数:15
相关论文
共 50 条
  • [31] Unsafe Assertions
    Blaauw, Martijn
    de Ridder, Jeroen
    [J]. AUSTRALASIAN JOURNAL OF PHILOSOPHY, 2012, 90 (04) : 797 - 801
  • [32] TESTING ASSERTIONS
    BAXANDALL, PJ
    [J]. ELECTRONICS WORLD & WIRELESS WORLD, 1990, 96 (1658): : 1044 - 1045
  • [33] Specious assertions
    Diamant, B
    [J]. PHI DELTA KAPPAN, 1998, 80 (01) : 95 - 95
  • [34] INFERTILE ASSERTIONS
    PRESCOTT, GH
    [J]. SIERRA, 1985, 70 (04) : 7 - 7
  • [35] Assertions and recursions
    Moller, B
    [J]. HIGHER-ORDER ALGEBRA, LOGIC, AND TERM REWRITING, 1996, 1074 : 163 - 184
  • [36] ANONYMOUS ASSERTIONS
    Goldberg, Sanford C.
    [J]. EPISTEME-A JOURNAL OF INDIVIDUAL AND SOCIAL EPISTEMOLOGY, 2013, 10 (02): : 135 - 151
  • [37] Dubious assertions
    David Sosa
    [J]. Philosophical Studies, 2009, 146 : 269 - 272
  • [38] SENTENCES AND ASSERTIONS
    FELDMAN, RH
    [J]. JOURNAL OF PHILOSOPHY, 1978, 75 (10): : 568 - 568
  • [39] Life Assertions
    Fry, Declan
    [J]. WESTERLY, 2021, 66 (02): : 10 - 10
  • [40] APPLICATIVE ASSERTIONS
    MOLLER, B
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1989, 375 : 348 - 362