[release/1.4.13] node: fix go vet issue
This commit is contained in:
@ -514,12 +514,32 @@ func TestAPIGather(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
"Zero APIs": {[]rpc.API{}, InstrumentedServiceMakerA},
|
"Zero APIs": {[]rpc.API{}, InstrumentedServiceMakerA},
|
||||||
"Single API": {[]rpc.API{
|
"Single API": {[]rpc.API{
|
||||||
{"single", "1", &OneMethodApi{fun: func() { calls <- "single.v1" }}, true},
|
{
|
||||||
|
Namespace: "single",
|
||||||
|
Version: "1",
|
||||||
|
Service: &OneMethodApi{fun: func() { calls <- "single.v1" }},
|
||||||
|
Public: true,
|
||||||
|
},
|
||||||
}, InstrumentedServiceMakerB},
|
}, InstrumentedServiceMakerB},
|
||||||
"Many APIs": {[]rpc.API{
|
"Many APIs": {[]rpc.API{
|
||||||
{"multi", "1", &OneMethodApi{fun: func() { calls <- "multi.v1" }}, true},
|
{
|
||||||
{"multi.v2", "2", &OneMethodApi{fun: func() { calls <- "multi.v2" }}, true},
|
Namespace: "multi",
|
||||||
{"multi.v2.nested", "2", &OneMethodApi{fun: func() { calls <- "multi.v2.nested" }}, true},
|
Version: "1",
|
||||||
|
Service: &OneMethodApi{fun: func() { calls <- "multi.v1" }},
|
||||||
|
Public: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Namespace: "multi.v2",
|
||||||
|
Version: "2",
|
||||||
|
Service: &OneMethodApi{fun: func() { calls <- "multi.v2" }},
|
||||||
|
Public: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Namespace: "multi.v2.nested",
|
||||||
|
Version: "2",
|
||||||
|
Service: &OneMethodApi{fun: func() { calls <- "multi.v2.nested" }},
|
||||||
|
Public: true,
|
||||||
|
},
|
||||||
}, InstrumentedServiceMakerC},
|
}, InstrumentedServiceMakerC},
|
||||||
}
|
}
|
||||||
for id, config := range services {
|
for id, config := range services {
|
||||||
|
Reference in New Issue
Block a user