Skip to content

Commit 028fc29

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: group test methods
1 parent 93d8a03 commit 028fc29

File tree

1 file changed

+28
-18
lines changed
  • java/ql/test/query-tests/Metrics/GeneratedVsManualCoverage

1 file changed

+28
-18
lines changed

java/ql/test/query-tests/Metrics/GeneratedVsManualCoverage/IOUtils.java

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,32 @@
33
import java.util.*;
44

55
public class IOUtils {
6-
public static BufferedInputStream buffer(InputStream inputStream) { return null; } // Generated-only summary
7-
public static void copy(InputStream input, Writer output, String inputEncoding) throws IOException { } // Generated-only summary
8-
public static void copy(Reader input, OutputStream output) throws IOException { } // Generated neutral
9-
public static long copyLarge(Reader input, Writer output) throws IOException { return 42; } // Generated-only summary
10-
public static int read(InputStream input, byte[] buffer) throws IOException { return 42; } // Generated-only summary
11-
public static void readFully(InputStream input, byte[] buffer) throws IOException { } // Generated-only summary
12-
public static byte[] readFully(InputStream input, int length) throws IOException { return null; } // Generated-only summary
13-
public static List<String> readLines(InputStream input, String encoding) throws IOException { return null; } // Generated-only summary
14-
public static InputStream toBufferedInputStream(InputStream input) throws IOException { return null; } // Manual-only summary (generated neutral)
15-
public static BufferedReader toBufferedReader(Reader reader) { return null; } // Generated-only summary
16-
public static byte[] toByteArray(InputStream input, int size) throws IOException { return null; } // Generated-only summary
17-
public static char[] toCharArray(InputStream is, String encoding) throws IOException { return null; } // Generated-only summary
18-
public static InputStream toInputStream(String input, String encoding) throws IOException { return null; } // Generated-only summary
19-
public static String toString(InputStream input, String encoding) throws IOException { return null; } // Generated-only summary
20-
public static void write(char[] data, Writer output) throws IOException { } // Generated-only summary
21-
public static void writeChunked(char[] data, Writer output) throws IOException { } // Generated-only summary
22-
public static void writeLines(Collection<?> lines, String lineEnding, Writer writer) throws IOException { } // Both
23-
public static void noSummary(String string) throws IOException { } // No model
6+
7+
// Generated-only summaries
8+
public static BufferedInputStream buffer(InputStream inputStream) { return null; }
9+
public static void copy(InputStream input, Writer output, String inputEncoding) throws IOException { }
10+
public static long copyLarge(Reader input, Writer output) throws IOException { return 42; }
11+
public static int read(InputStream input, byte[] buffer) throws IOException { return 42; }
12+
public static void readFully(InputStream input, byte[] buffer) throws IOException { }
13+
public static byte[] readFully(InputStream input, int length) throws IOException { return null; }
14+
public static List<String> readLines(InputStream input, String encoding) throws IOException { return null; }
15+
public static BufferedReader toBufferedReader(Reader reader) { return null; }
16+
public static byte[] toByteArray(InputStream input, int size) throws IOException { return null; }
17+
public static char[] toCharArray(InputStream is, String encoding) throws IOException { return null; }
18+
public static InputStream toInputStream(String input, String encoding) throws IOException { return null; }
19+
public static String toString(InputStream input, String encoding) throws IOException { return null; }
20+
public static void write(char[] data, Writer output) throws IOException { }
21+
public static void writeChunked(char[] data, Writer output) throws IOException { }
22+
23+
// Manual-only summary (generated neutral)
24+
public static InputStream toBufferedInputStream(InputStream input) throws IOException { return null; }
25+
26+
// Both
27+
public static void writeLines(Collection<?> lines, String lineEnding, Writer writer) throws IOException { }
28+
29+
// No model
30+
public static void noSummary(String string) throws IOException { }
31+
32+
// Generated neutral
33+
public static void copy(Reader input, OutputStream output) throws IOException { }
2434
}

0 commit comments

Comments
 (0)