Skip to content

Commit 8b18df0

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update top jdk apis test case with stubs
1 parent e0524a1 commit 8b18df0

File tree

134 files changed

+2286
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+2286
-45
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
| java.io | 0 | 0 | 21 | 10 | 31 | 0.6774193548387096 | 0.0 | 0.6774193548387096 | 0.0 | NaN | 0.3225806451612903 |
2+
| java.lang | 0 | 0 | 44 | 103 | 147 | 0.29931972789115646 | 0.0 | 0.29931972789115646 | 0.0 | NaN | 0.7006802721088435 |
3+
| java.lang.reflect | 0 | 0 | 0 | 4 | 4 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
4+
| java.math | 0 | 0 | 0 | 16 | 16 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
5+
| java.net | 0 | 0 | 5 | 0 | 5 | 1.0 | 0.0 | 1.0 | 0.0 | NaN | 0.0 |
6+
| java.nio | 0 | 0 | 2 | 3 | 5 | 0.4 | 0.0 | 0.4 | 0.0 | NaN | 0.6 |
7+
| java.nio.charset | 0 | 0 | 0 | 1 | 1 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
8+
| java.nio.file | 0 | 0 | 1 | 1 | 2 | 0.5 | 0.0 | 0.5 | 0.0 | NaN | 0.5 |
9+
| java.sql | 0 | 0 | 0 | 2 | 2 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
10+
| java.text | 0 | 0 | 0 | 5 | 5 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
11+
| java.time | 0 | 0 | 0 | 17 | 17 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
12+
| java.time.chrono | 0 | 0 | 0 | 1 | 1 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
13+
| java.time.format | 0 | 0 | 0 | 2 | 2 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
14+
| java.util | 0 | 0 | 36 | 52 | 88 | 0.4090909090909091 | 0.0 | 0.4090909090909091 | 0.0 | NaN | 0.5909090909090909 |
15+
| java.util.concurrent | 0 | 0 | 4 | 8 | 12 | 0.3333333333333333 | 0.0 | 0.3333333333333333 | 0.0 | NaN | 0.6666666666666666 |
16+
| java.util.concurrent.atomic | 0 | 0 | 2 | 11 | 13 | 0.15384615384615385 | 0.0 | 0.15384615384615385 | 0.0 | NaN | 0.8461538461538461 |
17+
| java.util.function | 0 | 0 | 0 | 1 | 1 | 0.0 | 0.0 | 0.0 | NaN | NaN | 1.0 |
18+
| java.util.logging | 0 | 0 | 1 | 1 | 2 | 0.5 | 0.0 | 0.5 | 0.0 | NaN | 0.5 |
19+
| java.util.regex | 0 | 0 | 3 | 1 | 4 | 0.75 | 0.0 | 0.75 | 0.0 | NaN | 0.25 |
20+
| java.util.stream | 0 | 0 | 3 | 5 | 8 | 0.375 | 0.0 | 0.375 | 0.0 | NaN | 0.625 |

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

Lines changed: 0 additions & 45 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Generated automatically from java.awt.Container for testing purposes
2+
3+
package java.awt;
4+
5+
import java.awt.AWTEvent;
6+
import java.awt.AWTKeyStroke;
7+
import java.awt.Component;
8+
import java.awt.ComponentOrientation;
9+
import java.awt.Dimension;
10+
import java.awt.Event;
11+
import java.awt.FocusTraversalPolicy;
12+
import java.awt.Font;
13+
import java.awt.Graphics;
14+
import java.awt.Insets;
15+
import java.awt.LayoutManager;
16+
import java.awt.Point;
17+
import java.awt.event.ContainerEvent;
18+
import java.awt.event.ContainerListener;
19+
import java.beans.PropertyChangeListener;
20+
import java.io.PrintStream;
21+
import java.io.PrintWriter;
22+
import java.util.EventListener;
23+
import java.util.Set;
24+
25+
public class Container extends Component
26+
{
27+
public Component add(Component p0){ return null; } // manual summary
28+
public void add(Component p0, Object p1){} // manual summary
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Generated automatically from java.awt.Insets for testing purposes
2+
3+
package java.awt;
4+
5+
import java.io.Serializable;
6+
7+
public class Insets implements Cloneable, Serializable
8+
{
9+
protected Insets() {}
10+
public Insets(int p0, int p1, int p2, int p3){} // manual neutral
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Generated automatically from java.io.BufferedReader for testing purposes
2+
3+
package java.io;
4+
5+
import java.io.Reader;
6+
import java.util.stream.Stream;
7+
8+
public class BufferedReader
9+
{
10+
protected BufferedReader() {}
11+
public BufferedReader(Reader p0){} // manual summary
12+
public String readLine(){ return null; } // manual summary
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Generated automatically from java.io.ByteArrayInputStream for testing purposes
2+
3+
package java.io;
4+
5+
import java.io.InputStream;
6+
7+
public class ByteArrayInputStream
8+
{
9+
protected ByteArrayInputStream() {}
10+
public ByteArrayInputStream(byte[] p0){} // manual summary
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Generated automatically from java.io.ByteArrayOutputStream for testing purposes
2+
3+
package java.io;
4+
5+
import java.io.OutputStream;
6+
7+
public class ByteArrayOutputStream
8+
{
9+
public byte[] toByteArray(){ return null; } // manual summary
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Generated automatically from java.io.Closeable for testing purposes
2+
3+
package java.io;
4+
5+
6+
public interface Closeable extends AutoCloseable
7+
{
8+
void close(); // manual neutral
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Generated automatically from java.io.DataInput for testing purposes
2+
3+
package java.io;
4+
5+
6+
public interface DataInput
7+
{
8+
int readInt(); // manual neutral
9+
long readLong(); // manual neutral
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Generated automatically from java.io.DataOutput for testing purposes
2+
3+
package java.io;
4+
5+
6+
public interface DataOutput
7+
{
8+
void writeBoolean(boolean p0); // manual neutral
9+
void writeInt(int p0); // manual neutral
10+
void writeLong(long p0); // manual neutral
11+
}

0 commit comments

Comments
 (0)