@@ -514,12 +514,32 @@ func TestAPIGather(t *testing.T) {
514
514
}{
515
515
"Zero APIs" : {[]rpc.API {}, InstrumentedServiceMakerA },
516
516
"Single API" : {[]rpc.API {
517
- {"single" , "1" , & OneMethodApi {fun : func () { calls <- "single.v1" }}, true },
517
+ {
518
+ Namespace : "single" ,
519
+ Version : "1" ,
520
+ Service : & OneMethodApi {fun : func () { calls <- "single.v1" }},
521
+ Public : true ,
522
+ },
518
523
}, InstrumentedServiceMakerB },
519
524
"Many APIs" : {[]rpc.API {
520
- {"multi" , "1" , & OneMethodApi {fun : func () { calls <- "multi.v1" }}, true },
521
- {"multi.v2" , "2" , & OneMethodApi {fun : func () { calls <- "multi.v2" }}, true },
522
- {"multi.v2.nested" , "2" , & OneMethodApi {fun : func () { calls <- "multi.v2.nested" }}, true },
525
+ {
526
+ Namespace : "multi" ,
527
+ Version : "1" ,
528
+ Service : & OneMethodApi {fun : func () { calls <- "multi.v1" }},
529
+ Public : true ,
530
+ },
531
+ {
532
+ Namespace : "multi.v2" ,
533
+ Version : "2" ,
534
+ Service : & OneMethodApi {fun : func () { calls <- "multi.v2" }},
535
+ Public : true ,
536
+ },
537
+ {
538
+ Namespace : "multi.v2.nested" ,
539
+ Version : "2" ,
540
+ Service : & OneMethodApi {fun : func () { calls <- "multi.v2.nested" }},
541
+ Public : true ,
542
+ },
523
543
}, InstrumentedServiceMakerC },
524
544
}
525
545
for id , config := range services {
0 commit comments