MCPcopy Create free account
hub / github.com/ReadyTalk/avian / addLastTest

Method addLastTest

test/DequeHelper.java:25–34  ·  view source on GitHub ↗
(Deque<Object> q)

Source from the content-addressed store, hash-verified

23 }
24
25 public static void addLastTest(Deque<Object> q) {
26 Object firstObject = new Object();
27 Object lastObject = new Object();
28 q.addLast(firstObject);
29 q.addLast(lastObject);
30
31 verify(q.size() == 2);
32 verify(q.peekFirst() == firstObject);
33 verify(q.peekLast() == lastObject);
34 }
35
36 public static void removeFirstTest(Deque<Object> q) {
37 Object firstObject = new Object();

Callers 1

mainMethod · 0.95

Calls 5

verifyMethod · 0.95
addLastMethod · 0.65
sizeMethod · 0.65
peekFirstMethod · 0.65
peekLastMethod · 0.65

Tested by

no test coverage detected