MCPcopy Create free account
hub / github.com/xmlet/HtmlFlow / loadLines

Method loadLines

flowifier/src/test/java/htmlflow/test/Utils.java:63–74  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

61 }
62
63 public static Stream<String> loadLines(String path) {
64 try{
65 InputStream in = TestDivDetails.class
66 .getClassLoader()
67 .getResource(path)
68 .openStream();
69 BufferedReader reader = new BufferedReader(new InputStreamReader(in));
70 return reader.lines().onClose(asUncheckedRunnable(reader));
71 } catch (IOException e) {
72 throw new UncheckedIOException(e);
73 }
74 }
75
76 /**
77 * Convert a Closeable to a Runnable by converting checked IOException

Callers 3

TestDivDetailsMethod · 0.45

Calls 1

asUncheckedRunnableMethod · 0.95

Tested by

no test coverage detected