Design: 03.03/P07

This is an abstract, language-independent design. Grim details may be found in the corresponding source code. You may return to the documentation for the module containing this program design, or to the entire hierarchical table of topics covered by the PVT.


PROGRAM 7: Partial networks in archive

CHARACTERISTICS: nnnn

OPERATOR SCRIPT: passive test.

DESIGN:

*** *** ***   partial archive networks   *** *** ***

set up structures:
   CSS     : 101-C, 104-C, with 101-C invoking 104-C

<archive structures> 101

TEST: #SR 1 4
      "When <archive structures> specifies a referring structure,
       but not the structure to which it refers, only the
       specified structure should be archived."
<retrieve structure identifiers> to determine:
   actstr = actual list of structures
pass/fail depending on (actstr = [101])

*** *** ***   completing CSS networks   *** *** ***

clear CSS
<retrieve structures> 101

TEST: #SR 9 12 19
      "If <retrieve structures> specifies a referring structure
       but not the structure to which it refers, and no structure
       with the referred identifier exists in the CSS, then an
       empty structure should be created in the CSS with the
       corresponding identifier when the referring structure is
       retrieved."
pass/fail depending on (CSS = 101-C, 104-E)

set up structures:
   archive : 101-C, 104-C, with 101-C invoking 104-C

clear CSS
<retrieve structures> 101

TEST: #SR 9 12 19
      "If <retrieve structures> specifies a referring structure
       but not the structure to which it refers, and no structure
       with the referred identifier exists in the CSS, then an
       empty structure should be created in the CSS with the
       corresponding identifier when the referring structure is
       retrieved, even if the referred structure exists in the
       archive."
pass/fail depending on (CSS = 101-C, 104-E)

END PROGRAM 7