MCPcopy
hub / github.com/arduino/Arduino / test

Method test

app/src/processing/app/Editor.java:141–150  ·  view source on GitHub ↗
(SketchController controller)

Source from the content-addressed store, hash-verified

139 implements Predicate<SketchController> {
140
141 @Override
142 public boolean test(SketchController controller) {
143 if (controller.isReadOnly()) {
144 return false;
145 }
146 if (controller.getSketch().isModified()) {
147 return PreferencesData.getBoolean("editor.save_on_verify");
148 }
149 return true;
150 }
151 }
152
153 final Base base;

Callers

nothing calls this directly

Calls 4

getBooleanMethod · 0.95
isReadOnlyMethod · 0.80
isModifiedMethod · 0.65
getSketchMethod · 0.45

Tested by

no test coverage detected