MCPcopy Create free account
hub / github.com/BaseXdb/basex / reject

Method reject

basex-core/src/test/java/org/basex/util/InlineTest.java:67–77  ·  view source on GitHub ↗

Test.

()

Source from the content-addressed store, hash-verified

65
66 /** Test. */
67 @Test public void reject() {
68 // too long string
69 reject("abcde");
70 // too long string (and too large digit)
71 reject("2147483648");
72 // mixture of whitespace and non-whitespace
73 reject(" 1");
74 reject("1 ");
75 // too much whitespace
76 reject(" ");
77 }
78
79 /**
80 * Tests the correctness of the compressed tokens.

Callers

nothing calls this directly

Calls 6

packMethod · 0.95
tokenMethod · 0.65
appendMethod · 0.65
insertMethod · 0.65
toStringMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected