now with coverage
This commit is contained in:
parent
0878d05da8
commit
dbb24299ce
|
@ -22,7 +22,20 @@ public class PinoutLogicIntegratedTest {
|
|||
" class: [event_inputs, switch_inputs]\n" +
|
||||
" function: Digital trigger/switch input for instance Hall type CAM\n" +
|
||||
" ts_name: Digital 2\n" +
|
||||
" type: din", "");
|
||||
" type: din",
|
||||
"//DO NOT EDIT MANUALLY, let automation work hard.\n" +
|
||||
"\n" +
|
||||
"// auto-generated by PinoutLogic.java based on key\n" +
|
||||
"#include \"pch.h\"\n" +
|
||||
"\n" +
|
||||
"// see comments at declaration in pin_repository.h\n" +
|
||||
"const char * getBoardSpecificPinName(brain_pin_e brainPin) {\n" +
|
||||
"\tswitch(brainPin) {\n" +
|
||||
"\t\tcase Gpio::E11: return \"Digital 2\";\n" +
|
||||
"\t\tdefault: return nullptr;\n" +
|
||||
"\t}\n" +
|
||||
"\treturn nullptr;\n" +
|
||||
"}\n");
|
||||
|
||||
}
|
||||
|
||||
|
@ -72,6 +85,6 @@ public class PinoutLogicIntegratedTest {
|
|||
|
||||
logic.registerBoardSpecificPinNames(state.getVariableRegistry(), definitionState, state.getEnumsReader());
|
||||
|
||||
// assertEquals(expected, testWriter.getBuffer().toString());
|
||||
assertEquals(expected, testWriter.getBuffer().toString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue