-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2285 from AllenInstitute/feature/2285-assert-in-p…
…rototype-analysis-functions MIES_AnalysisFunctionPrototypes.ipf: Assert out
- Loading branch information
Showing
4 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#pragma TextEncoding="UTF-8" | ||
#pragma rtGlobals=3 // Use modern global access method and strict wave access. | ||
#pragma rtFunctionErrors=1 | ||
#pragma ModuleName=AnalysisFunctionPrototypeTests | ||
|
||
static Function CheckThatTheyAllAssertOut() | ||
|
||
string funcList, func | ||
|
||
funcList = FunctionList("*", ";", "WIN:MIES_AnalysisFunctionPrototypes.ipf") | ||
CHECK_PROPER_STR(funcList) | ||
|
||
WAVE/T funcs = ListToTextWave(funcList, ";") | ||
|
||
for(func : funcs) | ||
INFO("Function %s", s0 = func) | ||
|
||
try | ||
strswitch(func) | ||
case "AFP_ANALYSIS_FUNC_V1": | ||
AFP_ANALYSIS_FUNC_V1("", NaN, $"", NaN) | ||
break | ||
case "AFP_ANALYSIS_FUNC_V2": | ||
AFP_ANALYSIS_FUNC_V2("", NaN, $"", NaN, NaN) | ||
break | ||
case "AFP_ANALYSIS_FUNC_V3": | ||
STRUCT AnalysisFunction_V3 af | ||
AFP_ANALYSIS_FUNC_V3("", af) | ||
break | ||
case "AFP_PARAM_GETTER_V3": | ||
AFP_PARAM_GETTER_V3() | ||
break | ||
case "AFP_PARAM_HELP_GETTER_V3": | ||
AFP_PARAM_HELP_GETTER_V3("") | ||
break | ||
case "AFP_PARAM_CHECK_V1": | ||
AFP_PARAM_CHECK_V1("", "") | ||
break | ||
case "AFP_PARAM_CHECK_V2": | ||
STRUCT CheckParametersStruct cp | ||
AFP_PARAM_CHECK_V2("", cp) | ||
break | ||
default: | ||
FAIL() | ||
endswitch | ||
FAIL() | ||
catch | ||
CHECK_NO_RTE() | ||
endtry | ||
endfor | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters