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

Method Main

compatibility/pg/csharp/PGTest.cs:156–174  ·  view source on GitHub ↗
(string[] args)

Source from the content-addressed store, hash-verified

154 }
155
156 public static void Main(string[] args)
157 {
158 if (args.Length < 5)
159 {
160 Console.Error.WriteLine("Usage: PGTest <ip> <port> <user> <password> <testFile>");
161 Environment.Exit(1);
162 }
163
164 var tests = new Tests();
165 tests.Connect(args[0], int.Parse(args[1]), args[2], args[3]);
166 tests.ReadTestsFromFile(args[4]);
167
168 if (!tests.RunTests())
169 {
170 tests.Disconnect();
171 Environment.Exit(1);
172 }
173 tests.Disconnect();
174 }
175}

Callers

nothing calls this directly

Calls 4

ConnectMethod · 0.45
ReadTestsFromFileMethod · 0.45
RunTestsMethod · 0.45
DisconnectMethod · 0.45

Tested by

no test coverage detected