Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

An assertion built-in to the run-time might have helped; for example:

  1. Create a function like bool isTestOnly(string branchCode) { ... }
  2. Use this function to decide which reports to filter out
  3. Re-use that function in an assertion, in the branch-creation code, to verify or assert that a branch isn't (can't be) created using this type of branch code ‼
  4. Have this assertion enabled in the real run-time (and not "optimized away except in the debug-only developer version of the code") ‼

See also:

An assertion built-in to the run-time might have helped; for example:

  1. Create a function like bool isTestOnly(string branchCode) { ... }
  2. Use this function to decide which reports to filter out
  3. Re-use that function in an assertion, in the branch-creation code, to verify or assert that a branch isn't (can't be) created using this type of branch code ‼
  4. Have this assertion enabled in the real run-time (and not "optimized away except in the debug-only developer version of the code") ‼

See also:

An assertion built-in to the run-time might have helped; for example:

  1. Create a function like bool isTestOnly(string branchCode) { ... }
  2. Use this function to decide which reports to filter out
  3. Re-use that function in an assertion, in the branch-creation code, to verify or assert that a branch isn't (can't be) created using this type of branch code ‼
  4. Have this assertion enabled in the real run-time (and not "optimized away except in the debug-only developer version of the code") ‼

See also:

Source Link
ChrisW
  • 3.4k
  • 2
  • 23
  • 29

An assertion built-in to the run-time might have helped; for example:

  1. Create a function like bool isTestOnly(string branchCode) { ... }
  2. Use this function to decide which reports to filter out
  3. Re-use that function in an assertion, in the branch-creation code, to verify or assert that a branch isn't (can't be) created using this type of branch code ‼
  4. Have this assertion enabled in the real run-time (and not "optimized away except in the debug-only developer version of the code") ‼

See also: