Merge pull request #11585 from jcogs33/jcogs33/mad-metrics-query

Java: add MaD metrics query
This commit is contained in:
Jami
2022-12-15 19:26:51 -05:00
committed by GitHub
14 changed files with 182 additions and 6 deletions

View File

@@ -0,0 +1 @@
| org.apache.commons.io | 14 | 1 | 1 | 2 | 18 | 0.8888888888888888 | 0.8333333333333334 | 0.1111111111111111 | 0.5 | 0.06666666666666667 | 0.16666666666666666 |

View File

@@ -0,0 +1 @@
Metrics/Summaries/GeneratedVsManualCoverage.ql

View File

@@ -0,0 +1,34 @@
package org.apache.commons.io;
import java.io.*;
import java.util.*;
public class IOUtils {
// Generated-only summaries
public static BufferedInputStream buffer(InputStream inputStream) { return null; }
public static void copy(InputStream input, Writer output, String inputEncoding) throws IOException { }
public static long copyLarge(Reader input, Writer output) throws IOException { return 42; }
public static int read(InputStream input, byte[] buffer) throws IOException { return 42; }
public static void readFully(InputStream input, byte[] buffer) throws IOException { }
public static byte[] readFully(InputStream input, int length) throws IOException { return null; }
public static List<String> readLines(InputStream input, String encoding) throws IOException { return null; }
public static BufferedReader toBufferedReader(Reader reader) { return null; }
public static byte[] toByteArray(InputStream input, int size) throws IOException { return null; }
public static char[] toCharArray(InputStream is, String encoding) throws IOException { return null; }
public static InputStream toInputStream(String input, String encoding) throws IOException { return null; }
public static String toString(InputStream input, String encoding) throws IOException { return null; }
public static void write(char[] data, Writer output) throws IOException { }
public static void writeChunked(char[] data, Writer output) throws IOException { }
// Manual-only summary (generated neutral)
public static InputStream toBufferedInputStream(InputStream input) throws IOException { return null; }
// Both
public static void writeLines(Collection<?> lines, String lineEnding, Writer writer) throws IOException { }
// No model
public static void noSummary(String string) throws IOException { }
// Generated neutral
public static void copy(Reader input, OutputStream output) throws IOException { }
}