MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / assertGuessed

Function assertGuessed

test/unit/encoder-tests.js:66–75  ·  view source on GitHub ↗
(value, expectedType, message)

Source from the content-addressed store, hash-verified

64 });
65
66 function assertGuessed(value, expectedType, message) {
67 const type = Encoder.guessDataType(value);
68 if (type === null) {
69 if (expectedType !== null) {
70 assert.ok(false, 'Type not guessed for value ' + value);
71 }
72 return;
73 }
74 assert.strictEqual(type.code, expectedType, message + ': ' + value);
75 }
76 });
77
78 describe('Encoder.isTypedArray()', function () {

Callers 1

encoder-tests.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected