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

Method Main

compatibility/mysql/csharp/MySQLTest.cs:160–178  ·  view source on GitHub ↗
(string[] args)

Source from the content-addressed store, hash-verified

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

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