Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 1 | /// Licensed to the Apache Software Foundation (ASF) under one |
| 2 | /// or more contributor license agreements. See the NOTICE file |
| 3 | /// distributed with this work for additional information |
| 4 | /// regarding copyright ownership. The ASF licenses this file |
| 5 | /// to you under the Apache License, Version 2.0 (the |
| 6 | /// 'License'); you may not use this file except in compliance |
| 7 | /// with the License. You may obtain a copy of the License at |
| 8 | /// |
| 9 | /// http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | /// |
| 11 | /// Unless required by applicable law or agreed to in writing, |
| 12 | /// software distributed under the License is distributed on an |
| 13 | /// 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | /// KIND, either express or implied. See the License for the |
| 15 | /// specific language governing permissions and limitations |
| 16 | /// under the License. |
| 17 | |
| 18 | import 'dart:async'; |
| 19 | import 'dart:convert'; |
| 20 | import 'dart:io'; |
| 21 | |
| 22 | import 'package:args/args.dart'; |
| 23 | import 'package:collection/equality.dart'; |
| 24 | import 'package:thrift/thrift.dart'; |
| 25 | import 'package:thrift/thrift_console.dart'; |
| 26 | import 'package:thrift_test/thrift_test.dart'; |
| 27 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 28 | const TEST_BASETYPES = 1; // 0000 0001 |
| 29 | const TEST_STRUCTS = 2; // 0000 0010 |
| 30 | const TEST_CONTAINERS = 4; // 0000 0100 |
| 31 | const TEST_EXCEPTIONS = 8; // 0000 1000 |
| 32 | const TEST_UNKNOWN = 64; // 0100 0000 (Failed to prepare environemt etc.) |
| 33 | const TEST_TIMEOUT = 128; // 1000 0000 |
| 34 | const TEST_NOTUSED = 48; // 0011 0000 (reserved bits) |
| 35 | |
| 36 | typedef Future FutureFunction(); |
| 37 | |
| 38 | class TTest { |
| 39 | final int errorCode; |
| 40 | final String name; |
| 41 | final FutureFunction func; |
| 42 | |
| 43 | TTest(this.errorCode, this.name, this.func); |
| 44 | } |
| 45 | |
| 46 | class TTestError extends Error { |
| 47 | final actual; |
| 48 | final expected; |
| 49 | |
| 50 | TTestError(this.actual, this.expected); |
| 51 | |
| 52 | String toString() => '$actual != $expected'; |
| 53 | } |
| 54 | |
| 55 | List<TTest> _tests; |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 56 | ThriftTestClient client; |
| 57 | bool verbose; |
| 58 | |
| 59 | /// Adapted from TestClient.php |
| 60 | main(List<String> args) async { |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 61 | ArgResults results = _parseArgs(args); |
| 62 | |
| 63 | if (results == null) { |
| 64 | exit(TEST_UNKNOWN); |
| 65 | } |
| 66 | |
| 67 | verbose = results['verbose'] == true; |
| 68 | |
| 69 | await _initTestClient( |
| 70 | host: results['host'], |
| 71 | port: int.parse(results['port']), |
| 72 | transportType: results['transport'], |
| 73 | protocolType: results['protocol']).catchError((e) { |
| 74 | stdout.writeln('Error:'); |
| 75 | stdout.writeln('$e'); |
| 76 | if (e is Error) { |
| 77 | stdout.writeln('${e.stackTrace}'); |
| 78 | } |
| 79 | exit(TEST_UNKNOWN); |
| 80 | }); |
| 81 | |
| 82 | // run tests |
| 83 | _tests = _createTests(); |
| 84 | |
| 85 | int result = 0; |
| 86 | |
| 87 | for (TTest test in _tests) { |
| 88 | if (verbose) stdout.write('${test.name}... '); |
| 89 | try { |
| 90 | await test.func(); |
| 91 | if (verbose) stdout.writeln('success!'); |
| 92 | } catch (e) { |
| 93 | if (verbose) stdout.writeln('$e'); |
| 94 | result = result | test.errorCode; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | exit(result); |
| 99 | } |
| 100 | |
| 101 | ArgResults _parseArgs(List<String> args) { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 102 | var parser = new ArgParser(); |
| 103 | parser.addOption('host', defaultsTo: 'localhost', help: 'The server host'); |
| 104 | parser.addOption('port', defaultsTo: '9090', help: 'The port to connect to'); |
| 105 | parser.addOption('transport', |
| 106 | defaultsTo: 'buffered', |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame^] | 107 | allowed: ['buffered', 'framed', 'http'], |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 108 | help: 'The transport name', |
| 109 | allowedHelp: { |
| 110 | 'buffered': 'TBufferedTransport', |
| 111 | 'framed': 'TFramedTransport' |
| 112 | }); |
| 113 | parser.addOption('protocol', |
| 114 | defaultsTo: 'binary', |
| 115 | allowed: ['binary', 'json'], |
| 116 | help: 'The protocol name', |
| 117 | allowedHelp: {'binary': 'TBinaryProtocol', 'json': 'TJsonProtocol'}); |
| 118 | parser.addFlag('verbose', defaultsTo: false); |
| 119 | |
| 120 | ArgResults results; |
| 121 | try { |
| 122 | results = parser.parse(args); |
| 123 | } catch (e) { |
| 124 | stdout.writeln('$e\n'); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 125 | } |
| 126 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 127 | if (results == null) stdout.write(parser.usage); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 128 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 129 | return results; |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | TProtocolFactory getProtocolFactory(String protocolType) { |
| 133 | if (protocolType == 'binary') { |
| 134 | return new TBinaryProtocolFactory(); |
| 135 | } else if (protocolType == 'json') { |
| 136 | return new TJsonProtocolFactory(); |
| 137 | } |
| 138 | |
| 139 | throw new ArgumentError.value(protocolType); |
| 140 | } |
| 141 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 142 | Future _initTestClient( |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 143 | {String host, int port, String transportType, String protocolType}) async { |
| 144 | TTransport transport; |
| 145 | var protocolFactory = getProtocolFactory(protocolType); |
| 146 | |
| 147 | if (transportType == 'http') { |
| 148 | var httpClient = new HttpClient(); |
| 149 | var config = new THttpConfig(Uri.parse('http://localhost'), {}); |
| 150 | transport = new THttpClientTransport(httpClient, config); |
| 151 | } else { |
| 152 | var socket = await Socket.connect(host, port); |
| 153 | transport = new TClientSocketTransport(new TTcpSocket(socket)); |
| 154 | if (transportType == 'framed') { |
| 155 | transport = new TFramedTransport(transport); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | var protocol = protocolFactory.getProtocol(transport); |
| 160 | client = new ThriftTestClient(protocol); |
| 161 | |
| 162 | await transport.open(); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 163 | } |
| 164 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 165 | List<TTest> _createTests() { |
| 166 | List<TTest> tests = []; |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 167 | |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 168 | var xtruct = new Xtruct() |
| 169 | ..string_thing = 'Zero' |
| 170 | ..byte_thing = 1 |
| 171 | ..i32_thing = -3 |
| 172 | ..i64_thing = -5; |
| 173 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 174 | tests.add(new TTest(TEST_BASETYPES, 'testVoid', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 175 | await client.testVoid(); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 176 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 177 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 178 | tests.add(new TTest(TEST_BASETYPES, 'testString', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 179 | var input = 'Test'; |
| 180 | var result = await client.testString(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 181 | if (result != input) throw new TTestError(result, input); |
| 182 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 183 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 184 | tests.add(new TTest(TEST_BASETYPES, 'testBool', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 185 | var input = true; |
| 186 | var result = await client.testBool(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 187 | if (result != input) throw new TTestError(result, input); |
| 188 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 189 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 190 | tests.add(new TTest(TEST_BASETYPES, 'testByte', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 191 | var input = 64; |
| 192 | var result = await client.testByte(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 193 | if (result != input) throw new TTestError(result, input); |
| 194 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 195 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 196 | tests.add(new TTest(TEST_BASETYPES, 'testI32', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 197 | var input = 2147483647; |
| 198 | var result = await client.testI32(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 199 | if (result != input) throw new TTestError(result, input); |
| 200 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 201 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 202 | tests.add(new TTest(TEST_BASETYPES, 'testI64', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 203 | var input = 9223372036854775807; |
| 204 | var result = await client.testI64(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 205 | if (result != input) throw new TTestError(result, input); |
| 206 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 207 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 208 | tests.add(new TTest(TEST_BASETYPES, 'testDouble', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 209 | var input = 3.1415926; |
| 210 | var result = await client.testDouble(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 211 | if (result != input) throw new TTestError(result, input); |
| 212 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 213 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 214 | tests.add(new TTest(TEST_BASETYPES, 'testBinary', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 215 | var utf8Codec = const Utf8Codec(); |
| 216 | var input = utf8Codec.encode('foo'); |
| 217 | var result = await client.testBinary(input); |
| 218 | var equality = const ListEquality(); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 219 | if (!equality.equals(result, input)) throw new TTestError(result, input); |
| 220 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 221 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 222 | tests.add(new TTest(TEST_CONTAINERS, 'testStruct', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 223 | var result = await client.testStruct(xtruct); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 224 | if ('$result' != '$xtruct') throw new TTestError(result, xtruct); |
| 225 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 226 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 227 | tests.add(new TTest(TEST_CONTAINERS, 'testNest', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 228 | var input = new Xtruct2() |
| 229 | ..byte_thing = 1 |
| 230 | ..struct_thing = xtruct |
| 231 | ..i32_thing = -3; |
| 232 | |
| 233 | var result = await client.testNest(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 234 | if ('$result' != '$input') throw new TTestError(result, input); |
| 235 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 236 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 237 | tests.add(new TTest(TEST_CONTAINERS, 'testMap', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 238 | Map<int, int> input = {1: -10, 2: -9, 3: -8, 4: -7, 5: -6}; |
| 239 | |
| 240 | var result = await client.testMap(input); |
| 241 | var equality = const MapEquality(); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 242 | if (!equality.equals(result, input)) throw new TTestError(result, input); |
| 243 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 244 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 245 | tests.add(new TTest(TEST_CONTAINERS, 'testSet', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 246 | var input = new Set.from([-2, -1, 0, 1, 2]); |
| 247 | var result = await client.testSet(input); |
| 248 | var equality = const SetEquality(); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 249 | if (!equality.equals(result, input)) throw new TTestError(result, input); |
| 250 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 251 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 252 | tests.add(new TTest(TEST_CONTAINERS, 'testList', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 253 | var input = [-2, -1, 0, 1, 2]; |
| 254 | var result = await client.testList(input); |
| 255 | var equality = const ListEquality(); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 256 | if (!equality.equals(result, input)) throw new TTestError(result, input); |
| 257 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 258 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 259 | tests.add(new TTest(TEST_CONTAINERS, 'testEnum', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 260 | await _testEnum(Numberz.ONE); |
| 261 | await _testEnum(Numberz.TWO); |
| 262 | await _testEnum(Numberz.THREE); |
| 263 | await _testEnum(Numberz.FIVE); |
| 264 | await _testEnum(Numberz.EIGHT); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 265 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 266 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 267 | tests.add(new TTest(TEST_BASETYPES, 'testTypedef', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 268 | var input = 309858235082523; |
| 269 | var result = await client.testTypedef(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 270 | if (result != input) throw new TTestError(result, input); |
| 271 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 272 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 273 | tests.add(new TTest(TEST_CONTAINERS, 'testMapMap', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 274 | Map<int, Map<int, int>> result = await client.testMapMap(1); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 275 | if (result.isEmpty || result[result.keys.first].isEmpty) { |
| 276 | throw new TTestError(result, 'Map<int, Map<int, int>>'); |
| 277 | } |
| 278 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 279 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 280 | tests.add(new TTest(TEST_CONTAINERS, 'testInsanity', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 281 | var input = new Insanity(); |
| 282 | input.userMap = {Numberz.FIVE: 5000}; |
| 283 | input.xtructs = [xtruct]; |
| 284 | |
| 285 | Map<int, Map<int, Insanity>> result = await client.testInsanity(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 286 | if (result.isEmpty || result[result.keys.first].isEmpty) { |
| 287 | throw new TTestError(result, 'Map<int, Map<int, Insanity>>'); |
| 288 | } |
| 289 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 290 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 291 | tests.add(new TTest(TEST_CONTAINERS, 'testMulti', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 292 | var input = new Xtruct() |
| 293 | ..string_thing = 'Hello2' |
| 294 | ..byte_thing = 123 |
| 295 | ..i32_thing = 456 |
| 296 | ..i64_thing = 789; |
| 297 | |
| 298 | var result = await client.testMulti(input.byte_thing, input.i32_thing, |
| 299 | input.i64_thing, {1: 'one'}, Numberz.EIGHT, 5678); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 300 | if ('$result' != '$input') throw new TTestError(result, input); |
| 301 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 302 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 303 | tests.add(new TTest(TEST_EXCEPTIONS, 'testException', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 304 | try { |
| 305 | await client.testException('Xception'); |
| 306 | } on Xception catch (x) { |
| 307 | return; |
| 308 | } |
| 309 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 310 | throw new TTestError(null, 'Xception'); |
| 311 | })); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 312 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 313 | tests.add(new TTest(TEST_EXCEPTIONS, 'testMultiException', () async { |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 314 | try { |
| 315 | await client.testMultiException('Xception2', 'foo'); |
| 316 | } on Xception2 catch (x) { |
| 317 | return; |
| 318 | } |
| 319 | |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 320 | throw new TTestError(null, 'Xception2'); |
| 321 | })); |
| 322 | |
| 323 | return tests; |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 324 | } |
| 325 | |
| 326 | Future _testEnum(int input) async { |
| 327 | var result = await client.testEnum(input); |
Mark Erickson | 83072a6 | 2015-10-05 14:33:28 -0500 | [diff] [blame] | 328 | if (result != input) throw new TTestError(result, input); |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 329 | } |