MCPcopy Index your code
hub / github.com/java-native-access/jna / TestStructure

Class TestStructure

test/com/sun/jna/StructureTest.java:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54 public void testSimpleSize() throws Exception {
55 class TestStructure extends Structure {
56 public int field;
57 @Override
58 protected List<String> getFieldOrder() {
59 return Arrays.asList("field");
60 }
61 }
62 Structure s = new TestStructure();
63 assertEquals("Wrong size", 4, s.size());
64 }

Callers

nothing calls this directly

Calls 3

setAlignTypeMethod · 0.80
toArrayMethod · 0.45
setPointerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…