Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
9
node_modules/fast-check/lib/check/precondition/Pre.js
generated
vendored
Normal file
9
node_modules/fast-check/lib/check/precondition/Pre.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.pre = pre;
|
||||
const PreconditionFailure_1 = require("./PreconditionFailure");
|
||||
function pre(expectTruthy) {
|
||||
if (!expectTruthy) {
|
||||
throw new PreconditionFailure_1.PreconditionFailure();
|
||||
}
|
||||
}
|
||||
15
node_modules/fast-check/lib/check/precondition/PreconditionFailure.js
generated
vendored
Normal file
15
node_modules/fast-check/lib/check/precondition/PreconditionFailure.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PreconditionFailure = void 0;
|
||||
class PreconditionFailure extends Error {
|
||||
constructor(interruptExecution = false) {
|
||||
super();
|
||||
this.interruptExecution = interruptExecution;
|
||||
this.footprint = PreconditionFailure.SharedFootPrint;
|
||||
}
|
||||
static isFailure(err) {
|
||||
return err != null && err.footprint === PreconditionFailure.SharedFootPrint;
|
||||
}
|
||||
}
|
||||
exports.PreconditionFailure = PreconditionFailure;
|
||||
PreconditionFailure.SharedFootPrint = Symbol.for('fast-check/PreconditionFailure');
|
||||
Loading…
Add table
Add a link
Reference in a new issue