23 require_once (
'CommonCliTest.php');
46 $this->tested_file = dirname(dirname(dirname(__DIR__))).
'/testing/dataFiles/TestData/licenses/jslint.js';
47 $license_report =
"JSON";
49 list($output,) = $this->
runNomos(
"",array($this->tested_file));
50 list(,,,,$license) = explode(
' ', $output);
51 $this->assertEquals(
trim($license), $license_report);
testOneShot_JSON()
Run NOMOS on JSON file.
runNomos($args="", $files=array())
Run nomos using the arguments passed.
Tests for common CLI operations.
Run one-shot license analysis on JSON license.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
char * trim(char *ptext)
Trimming whitespace.