(HashSet<int>? thing, CancellationToken cancellationToken)
| 347 | } |
| 348 | |
| 349 | public Task<HashSet<int>> testSet(HashSet<int>? thing, CancellationToken cancellationToken) |
| 350 | { |
| 351 | var sb = new StringBuilder(); |
| 352 | sb.Append("testSet({{"); |
| 353 | if (thing != null) |
| 354 | { |
| 355 | var first = true; |
| 356 | foreach (int elem in thing) |
| 357 | { |
| 358 | if (first) |
| 359 | { |
| 360 | first = false; |
| 361 | } |
| 362 | else |
| 363 | { |
| 364 | sb.Append(", "); |
| 365 | } |
| 366 | sb.AppendFormat("{0}", elem); |
| 367 | } |
| 368 | } |
| 369 | sb.Append("}})"); |
| 370 | logger.Invoke(sb.ToString()); |
| 371 | return Task.FromResult(thing ?? []); // null returns are not allowed in Thrift |
| 372 | } |
| 373 | |
| 374 | public Task<List<int>> testList(List<int>? thing, CancellationToken cancellationToken) |
| 375 | { |
no test coverage detected