Lines Matching refs:sqlite
20 protected $sqlite;
35 $this->sqlite = new \Sqlite3($_POST['setdatabase']);
37 return $this->view->TOC($this->sqlite);
42 $this->sqlite = new \Sqlite3($_POST['setdatabase']);
45 return $this->view->testTOC($this->sqlite);
48 return $this->view->fileCoverage($this->sqlite, $_GET['file'], $_GET['test']);
50 return $this->view->testTOC($this->sqlite, $_GET['test']);
54 return $this->view->fileLineTOC($this->sqlite, $_GET['file'], $_GET['line']);
56 return $this->view->fileCoverage($this->sqlite, $_GET['file']);
58 return $this->view->TOC($this->sqlite);
88 $this->sqlite = $this->view->getDatabase();
141 function TOC($sqlite)
143 $coverage = $sqlite->retrieveProjectCoverage();
144 $this->renderSummary($sqlite, $sqlite->retrievePaths(), false, $coverage[1], $covered[0]);
147 function testTOC($sqlite) argument
149 $this->renderTestSummary($sqlite);
152 function fileLineTOC($sqlite, $file, $line) argument
157 function fileCoverage($sqlite, $file, $test = null)
484 protected $sqlite;
503 $this->sqlite = new Sqlite($codepath, $db);
509 return $this->sqlite->retrieveLineLinks($file);
514 return $this->sqlite->retrievePaths();
519 return $this->sqlite->retrievePathsForTest($test);
524 return $this->sqlite->retrieveTestPaths();
529 return $this->sqlite->coveragePercentage($sourcefile, $testfile);
534 return $this->sqlite->retrievePathCoverage($path);
539 return $this->sqlite->retrievePathCoverageByTest($path, $test);
544 return $this->sqlite->retrieveCoverage($path);
549 return $this->sqlite->retrieveCoverageByTest($path, $test);
556 $this->sqlite->addCoverage(str_replace('.xdebug', '.phpt', $path), $testid, $xdebug);
596 if ($this->sqlite->unChangedXdebug($path)) {
608 foreach ($this->sqlite->retrieveTestPaths() as $path) {
615 $this->sqlite->removeOldTest($path, $xdebugpath);
624 $coverage = $this->sqlite->retrieveProjectCoverage();
743 protected $sqlite;
762 $this->sqlite = new Sqlite($db, $codepath, $testpath);
764 $this->sqlite->begin();
776 $id = $this->sqlite->addTest(str_replace('.xdebug', '.phpt', $xdebugfile));
782 $this->sqlite->updateTotalCoverage();
783 $this->sqlite->commit();
791 return $this->sqlite->retrieveLineLinks($file);
796 return $this->sqlite->retrievePaths();
801 return $this->sqlite->retrievePathsForTest($test);
806 return $this->sqlite->retrieveTestPaths();
811 return $this->sqlite->coveragePercentage($sourcefile, $testfile);
816 return $this->sqlite->retrievePathCoverage($path);
821 return $this->sqlite->retrievePathCoverageByTest($path, $test);
826 return $this->sqlite->retrieveCoverage($path);
831 return $this->sqlite->retrieveCoverageByTest($path, $test);
838 $this->sqlite->addCoverage(str_replace('.xdebug', '.phpt', $path), $testid, $xdebug);
878 if ($this->sqlite->unChangedXdebug($path)) {
890 foreach ($this->sqlite->retrieveTestPaths() as $path) {
897 $this->sqlite->removeOldTest($path, $xdebugpath);
906 $coverage = $this->sqlite->retrieveProjectCoverage();