Hello, if you just run npm test
you should get a coverage report:
-------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-------------|----------|----------|----------|----------|-------------------|
All files | 98.93 | 94.12 | 98.48 | 99.18 | |
app.js | 99.41 | 95.45 | 100 | 99.4 | 323 |
context.js | 100 | 100 | 100 | 100 | |
lo.js | 100 | 100 | 100 | 100 | |
request.js | 100 | 100 | 100 | 100 | |
response.js | 100 | 100 | 100 | 100 | |
run.js | 96.36 | 93.75 | 94.74 | 98.11 | 89 |
utils.js | 98.55 | 87.27 | 100 | 98.55 | 57 |
-------------|----------|----------|----------|----------|—————————|
Coverage is also available online: https://coveralls.io/github/malijs/mali
addService()
. Example in tests:Hmm these options should be passed properly and handled by underlying node and C++ grpc lib. I don’t have much time to test things out atm, but you could try additional logging on the server, for example:
GRPC_VERBOSITY=debug GRPC_TRACE=tcp,http,api,timer,timer_check,connectivity_state node myapp.js
I believe those should capture the ping checks. You can take a look at the available TRACE flags: https://github.com/grpc/grpc/blob/master/doc/environment_variables.md
mali.addService...
how can I access to bytes data?
syntax = "proto3";
package com.file;
message FileRequest {
string title = 1;
bytes file = 2;
}
message FileResponse {
string path = 1;
}
service FileService {
rpc SendFile (FileRequest) returns (FileResponse) {}
}
and here is the request
{
"title": "Hello",
"file": {
"type": "Buffer",
"data": [
72,
101,
108,
108,
111
]
}
}
I only have access to title in ctx.request.req
{ title: 'Hello' }
:?
unable to access 'https://github.com/malijs/jwt.git/': The requested URL returned error: 403
. Didn't find any info about contributing. Maybe someone could help? :)