Configuration Object
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/12 | ConfigTests.setting | OK | No exception thrown | |
| 2/12 | ConfigTests.getone | OK | Got the proper value in return | |
| 3/12 | ConfigTests.getmultiple | OK | 3 values returned | |
| 4/12 | ConfigTests.getunknown | OK | Got empty string | |
| 5/12 | ConfigTests.getwithdefault | OK | Got the default value in return | |
| 6/12 | ConfigTests.hasone | OK | has returned true for existing item | |
| 7/12 | ConfigTests.hastwo | OK | has returned false for nonexisting item | |
| 8/12 | ConfigTests.defone | OK | Updated empty setting | |
| 9/12 | ConfigTests.deftwo | OK | Left existing setting in place | |
| 10/12 | ConfigTests.booleantrue | OK | true setting returned true | |
| 11/12 | ConfigTests.booleanfalse | OK | false setting returned false | |
| 12/12 | ConfigTests.falsewithdefault | OK | false setting returned false with default value true |
Cryptographic wrappers
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/3 | Hashing: Check CRC32 and MD5 | OK | Tested algorithms OK | |
| 2/3 | Cipher: Check BLOWFISH and TWOFISH | OK | Tested algorithms OK | |
| 3/3 | Testing randomness from getRandom() | OK | Randomness looks OK |
Filesystem functions
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/7 | FilesysTests.getdirectory | OK | Returns an object | |
| 2/7 | FilesysTests.getglobbeddirectory | OK | Properly throws an exception | |
| 3/7 | FilesysTests.getbaddirectory | OK | Properly throws an exception | |
| 4/7 | FilesysTests.permissions_xFFF | OK | Got urwsrwsrwt | |
| 5/7 | FilesysTests.permissions_x00F | OK | Got u-----xrwx | |
| 6/7 | FilesysTests.permissions_x0F0 | OK | Got u-wxrw---- | |
| 7/7 | FilesysTests.permissions_xF00 | OK | Got ur-S--S--T |
Filesystem functions
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/10 | FsTests.applyMode | FAILED | '63' != '770' | |
| 2/10 | FsTests.bytesToHuman | OK | ||
| 3/10 | FsTests.humanToBytes | OK | ||
| 4/10 | Join paths | OK | ||
| 5/10 | Get a directory listing | OK | ||
| 6/10 | Creating an empty file | OK | ||
| 7/10 | Get the absolute path | OK | ||
| 8/10 | Writing to it | OK | ||
| 9/10 | Checking the size of it | OK | ||
| 10/10 | Deleting the file | OK |
Graphics tests
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/6 | Creating an image from scratch | OK | Successfully created image | |
| 2/6 | Drawing on the image | OK | TODO: Write tests | |
| 3/6 | Saving image to /tmp | OK | Saved image ok | |
| 4/6 | Saving image to bogus file | OK | Exception thrown (6) | |
| 5/6 | Reading image from /tmp | OK | Image loaded | |
| 6/6 | Reading image from bogus file | OK | Exception thrown (1) |
Markup tests
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/3 | wiki: headings (h1,h2,h3) | OK | Passed OK | |
| 2/3 | wiki: bold and italic | OK | Passed OK | |
| 3/3 | wiki: bullets | FAILED | result did not match |
Testing of the network support functions
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/4 | NetworkTests.iptolong | OK | Got expected result | |
| 2/4 | NetworkTests.longtoip | OK | Got expected result | |
| 3/4 | NetworkTests.gethostbyname | OK | Non null result | |
| 4/4 | NetworkTests.gethostmx | OK | Non null result |
Testing of the Optionset() class
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/5 | OptionsetTests.creation | OK | Returned an object | |
| 2/5 | OptionsetTests.gettestone | OK | get('foo') returned 1. | |
| 3/5 | OptionsetTests.gettesttwo | OK | get('bar') returned 'two'. | |
| 4/5 | OptionsetTests.gettestdefaultone | OK | get('baz') returned empty string. | |
| 5/5 | OptionsetTests.gettestdefaulttwo | OK | get('baz','3') returned '3'. |
Tests the shell related functions
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/7 | ShellTests.testEcho | OK | Returned 'hi' | |
| 2/7 | ShellTests.testReturn | OK | ||
| 3/7 | ShellTests.testReadLines | OK | ||
| 4/7 | ShellTests.testRunning | OK | 0 | |
| 5/7 | ShellTests.testCheckProcess | OK | ||
| 6/7 | ShellTests.escapeargOne | OK | Returned 'foo' | |
| 7/7 | ShellTests.execute | OK | Execute returns output |
Tests the singleton wrapper
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/12 | Create an instance of Foo | OK | Returned an object instance | |
| 2/12 | Create instance of Foo (again) | OK | Returned an object instance | |
| 3/12 | Assign 5 to Foo and check state | OK | Returned the set value | |
| 4/12 | Verify set value from Foo | OK | Returned the set value | |
| 5/12 | Change the value of Foo to 9 | OK | Returned the set value | |
| 6/12 | Create an instance of Foo(baz) | OK | Returned an empty object instance | |
| 7/12 | Assign 7 to Foo(baz) and check state | OK | Returned the set value | |
| 8/12 | Verify set value from Foo(baz) | OK | Returned the set value | |
| 9/12 | Check that Foo still returns assigned value | OK | Returned the set value | |
| 10/12 | Create instance of Bar | OK | Returned an empty object instance | |
| 11/12 | Assign 12 to Bar | OK | Returned the set value | |
| 12/12 | Verify value from Bar | OK | Returned the set value |
String manipulation (Strings class)
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/8 | StringTests.testReverse | OK | Got "raboof" | |
| 2/8 | StringTests.testSlug | OK | ||
| 3/8 | StringTests.testUppercase | OK | Got "FOOBAR" | |
| 4/8 | StringTests.testLowercase | OK | Got "foobar" | |
| 5/8 | StringTests.testPropercase | OK | Got "Foobar" | |
| 6/8 | StringTests.testWordZero | OK | Got nothing | |
| 7/8 | StringTests.testWordOne | OK | Got "hello" | |
| 8/8 | StringTests.testWordTwo | OK | Got "world" |
Tests the template class
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/3 | TemplateTests.defaults | OK | Not getting expected string | |
| 2/3 | TemplateTests.special | OK | Not getting expected string | |
| 3/3 | TemplateTests.cleanup | OK | Not getting expected string |
Tests the Url() class
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/6 | UrlTests.construct | OK | Construction successful and proper results returned | |
| 2/6 | UrlTests.constructWithPort | OK | Construction successful and proper results returned | |
| 3/6 | UrlTests.reassemble | OK | Returned the proper URL | |
| 4/6 | UrlTests.reassembleWithTypecast | OK | Returned the proper URL | |
| 5/6 | UrlTests.reassembleWithModifications | OK | Returned the proper URL | |
| 6/6 | UrlTests.build | OK | Returned the proper URL |
UUID Generation
| # | Name | Status | Message | |
|---|---|---|---|---|
| 1/1 | UuidTests.u4 | OK | Returned UUID 22111158-fb07-4958-954d-be364c4f7f25 |