MCPcopy Create free account
hub / github.com/grpc/grpc-java / impossibleCodeValue

Method impossibleCodeValue

api/src/test/java/io/grpc/StatusTest.java:43–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 @Test
44 public void impossibleCodeValue() {
45 assertEquals(Code.UNKNOWN, Status.fromCodeValue(-1).getCode());
46 assertEquals(Code.UNKNOWN, Status.fromCodeValue(17).getCode());
47 }
48
49 @Test
50 public void sameCauseReturnsSelf() {

Callers

nothing calls this directly

Calls 3

fromCodeValueMethod · 0.95
assertEqualsMethod · 0.80
getCodeMethod · 0.80

Tested by

no test coverage detected