MCPcopy Create free account
hub / github.com/apache/thrift / testList

Method testList

test/netstd/Server/TestServer.cs:374–397  ·  view source on GitHub ↗
(List<int>? thing, CancellationToken cancellationToken)

Source from the content-addressed store, hash-verified

372 }
373
374 public Task<List<int>> testList(List<int>? thing, CancellationToken cancellationToken)
375 {
376 var sb = new StringBuilder();
377 sb.Append("testList({{");
378 if (thing != null)
379 {
380 var first = true;
381 foreach (var elem in thing)
382 {
383 if (first)
384 {
385 first = false;
386 }
387 else
388 {
389 sb.Append(", ");
390 }
391 sb.AppendFormat("{0}", elem);
392 }
393 }
394 sb.Append("}})");
395 logger.Invoke(sb.ToString());
396 return Task.FromResult(thing ?? []); // null returns are not allowed in Thrift
397 }
398
399 public Task<Numberz> testEnum(Numberz thing, CancellationToken cancellationToken)
400 {

Callers 1

ExecuteClientTestMethod · 0.45

Calls 2

InvokeMethod · 0.80
ToStringMethod · 0.80

Tested by

no test coverage detected