Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codecov/example-java-gradle
/ divide
Method
divide
src/main/java/calculator/Calculator.java:16–22 ·
view source on GitHub ↗
(double x, double y)
Source
from the content-addressed store, hash-verified
14
}
15
16
public
static
double divide(double x, double y) {
17
if
(y == 0) {
18
System.out.println(
"Cannot divide by 0"
);
19
return
0;
20
}
21
return
x / y;
22
}
23
}
Callers
1
testDivide
Method · 0.95
Calls
no outgoing calls
Tested by
1
testDivide
Method · 0.76