MCPcopy Create free account
hub / github.com/apecloud/myduckserver / main

Method main

compatibility/pg/php/pg_test.php:4–19  ·  view source on GitHub ↗
($args)

Source from the content-addressed store, hash-verified

2
3class PGTest {
4 public static function main($args) {
5 if (count($args) != 5) {
6 echo "Usage: php " . $args[0] . " <ip> <port> <user> <password> <testFile>\n";
7 exit(1);
8 }
9
10 $tests = new Tests();
11 $tests->connect($args[0], intval($args[1]), $args[2], $args[3]);
12 $tests->readTestsFromFile($args[4]);
13
14 if (!$tests->runTests()) {
15 $tests->disconnect();
16 exit(1);
17 }
18 $tests->disconnect();
19 }
20}
21
22class Tests {

Callers 2

pg_test.phpFile · 0.45
flightsql_test.pyFile · 0.45

Calls 4

connectMethod · 0.45
readTestsFromFileMethod · 0.45
runTestsMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected