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

Method testSet

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

Source from the content-addressed store, hash-verified

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 {

Callers 1

ExecuteClientTestMethod · 0.45

Calls 2

InvokeMethod · 0.80
ToStringMethod · 0.80

Tested by

no test coverage detected