test/buffer.test.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 8
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 0
wmc 2
c 1
b 1
f 1
nc 1
mnd 0
bc 2
fnc 2
dl 0
loc 8
rs 10
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A buffer.test.js ➔ describe(ꞌbufferꞌ) 0 6 1
1
var assert = require('assert');
2
3
describe('buffer', function() {
4
    it("should reverse", function() {
5
        var b = new Buffer('010203', 'hex');
0 ignored issues
show
Bug introduced by
The variable Buffer seems to be never declared. If this is a global, consider adding a /** global: Buffer */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
6
        assert.equal(b.reverse().toString('hex'), '030201');
7
    });
8
});
9