File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ const CTX_FILE_PATH_TO_READ = "filePathToRead"
9696const CTX_FOLDERS_WITH_SOURCES_QUEUE = "foldersWithSourcesQueue"
9797const CTX_FQBN = "fqbn"
9898const CTX_GCC_MINUS_E_SOURCE = "gccMinusESource"
99- const CTX_GCC_MINUS_E_STDERR = "gccMinusEOutput"
10099const CTX_GCC_MINUS_M_OUTPUT = "gccMinusMOutput"
101100const CTX_HARDWARE_FOLDERS = "hardwareFolders"
102101const CTX_HARDWARE = "hardware"
@@ -113,8 +112,6 @@ const CTX_LIBRARY_DISCOVERY_RECURSION_DEPTH = "libraryDiscoveryRecursionDepth"
113112const CTX_LIBRARY_RESOLUTION_RESULTS = "libraryResolutionResults"
114113const CTX_LINE_OFFSET = "lineOffset"
115114const CTX_LINE_WHERE_TO_INSERT_PROTOTYPES = "lineWhereToInsertPrototypes"
116- const CTX_LINE_WHERE_TO_INSERT_PROTOTYPES_OF_PREPROC_SOURCE = "lineWhereToInsertPrototypesOfPreprocSource"
117- const CTX_LINE_WHERE_TO_INSERT_PROTOTYPES_OF_SOURCE = "lineWhereToInsertPrototypesOfSource"
118115const CTX_LOGGER = "logger"
119116const CTX_OBJECT_FILES_LIBRARIES = "objectFilesLibraries"
120117const CTX_OBJECT_FILES_SKETCH = "objectFilesSketch"
Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ func TestIncludesFinderWithRegExp(t *testing.T) {
8787 "#include <SPI.h>\n " +
8888 "^\n " +
8989 "compilation terminated."
90- context [constants . CTX_GCC_MINUS_E_STDERR ] = output
90+ context ["source" ] = output
9191
92- parser := builder.IncludesFinderWithRegExp {ContextField : constants . CTX_GCC_MINUS_E_STDERR }
92+ parser := builder.IncludesFinderWithRegExp {ContextField : "source" }
9393 err := parser .Run (context )
9494 NoError (t , err )
9595
@@ -104,9 +104,9 @@ func TestIncludesFinderWithRegExpEmptyOutput(t *testing.T) {
104104
105105 output := ""
106106
107- context [constants . CTX_GCC_MINUS_E_STDERR ] = output
107+ context ["source" ] = output
108108
109- parser := builder.IncludesFinderWithRegExp {ContextField : constants . CTX_GCC_MINUS_E_STDERR }
109+ parser := builder.IncludesFinderWithRegExp {ContextField : "source" }
110110 err := parser .Run (context )
111111 NoError (t , err )
112112
@@ -125,9 +125,9 @@ func TestIncludesFinderWithRegExpPreviousIncludes(t *testing.T) {
125125 "^\n " +
126126 "compilation terminated."
127127
128- context [constants . CTX_GCC_MINUS_E_STDERR ] = output
128+ context ["source" ] = output
129129
130- parser := builder.IncludesFinderWithRegExp {ContextField : constants . CTX_GCC_MINUS_E_STDERR }
130+ parser := builder.IncludesFinderWithRegExp {ContextField : "source" }
131131 err := parser .Run (context )
132132 NoError (t , err )
133133
You can’t perform that action at this time.
0 commit comments