MCPcopy Create free account
hub / github.com/LFYSec/MScan / getExpectedFile

Method getExpectedFile

src/test/java/pascal/taie/analysis/Tests.java:202–205  ·  view source on GitHub ↗

@param dir the directory containing the test case @param main main class of the test case @param id analysis ID @return the expected file for given test case and analysis.

(String dir, String main, String id)

Source from the content-addressed store, hash-verified

200 * @return the expected file for given test case and analysis.
201 */
202 private static String getExpectedFile(String dir, String main, String id) {
203 String fileName = String.format("%s-%s-expected.txt", main, id);
204 return Path.of(dir, fileName).toString();
205 }
206}

Callers 2

testMethod · 0.95
testPTAMethod · 0.95

Calls 3

formatMethod · 0.80
toStringMethod · 0.65
ofMethod · 0.65

Tested by

no test coverage detected