mirror of https://gitee.com/bigwinds/arangodb
jslint && cppcheck
This commit is contained in:
parent
9d3bbd1d89
commit
e495b5fb6c
|
@ -56,9 +56,8 @@ inline std::size_t validateAndCount(char const* vpStart,
|
||||||
validationOptions.validateUtf8Strings = true;
|
validationOptions.validateUtf8Strings = true;
|
||||||
VPackValidator validator(&validationOptions);
|
VPackValidator validator(&validationOptions);
|
||||||
|
|
||||||
std::size_t numPayloads = 0;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
std::size_t numPayloads = 0;
|
||||||
// check for slice start to the end of Chunk
|
// check for slice start to the end of Chunk
|
||||||
// isSubPart allows the slice to be shorter than the checked buffer.
|
// isSubPart allows the slice to be shorter than the checked buffer.
|
||||||
do {
|
do {
|
||||||
|
|
|
@ -35,8 +35,6 @@ var jsunity = require('jsunity');
|
||||||
|
|
||||||
|
|
||||||
function runSetup () {
|
function runSetup () {
|
||||||
require("console").log("Hund");
|
|
||||||
|
|
||||||
db._drop('UnitTestsRecovery');
|
db._drop('UnitTestsRecovery');
|
||||||
db._create('UnitTestsRecovery');
|
db._create('UnitTestsRecovery');
|
||||||
|
|
||||||
|
@ -44,7 +42,7 @@ function runSetup () {
|
||||||
db._create('UnitTestsRecovery');
|
db._create('UnitTestsRecovery');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// This intentionally should fail!
|
// This intentionally should fail!
|
||||||
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code == e.errorNum) {
|
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code === e.errorNum) {
|
||||||
// Only this is a valid return code from the server
|
// Only this is a valid return code from the server
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -62,9 +60,8 @@ function recoverySuite () {
|
||||||
tearDown: function () {},
|
tearDown: function () {},
|
||||||
|
|
||||||
testCollectionDuplicateName: function () {
|
testCollectionDuplicateName: function () {
|
||||||
require("console").log("Kartze");
|
|
||||||
var c = db._collection('UnitTestsRecovery');
|
var c = db._collection('UnitTestsRecovery');
|
||||||
assertTrue(c != null && c != undefined);
|
assertTrue(c !== null && c !== undefined);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue