lib/protobuf.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 12
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 0
c 1
b 0
f 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 12
ccs 3
cts 3
cp 1
crap 0
rs 10
bpm 0
cpm 0
noi 0
1 1
var protobuf = require("protobufjs");
2
3 1
var root = protobuf.Root.fromJSON(require("./protofile.json"));
4
5 1
module.exports = {
6
    Output: root.lookupType("Output"),
7
    PaymentDetails: root.lookupType("PaymentDetails"),
8
    PaymentRequest: root.lookupType("PaymentRequest"),
9
    Payment: root.lookupType("Payment"),
10
    PaymentACK: root.lookupType("PaymentACK"),
11
    X509Certificates: root.lookupType("X509Certificates")
12
};
13