| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /proc/self/root/home/livedhms/lmgt/node_modules/fast-check/lib/arbitrary/ |
| Current File : //proc/self/root/home/livedhms/lmgt/node_modules/fast-check/lib/arbitrary/context.js |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.context = context;
const symbols_1 = require("../check/symbols");
const constant_1 = require("./constant");
class ContextImplem {
constructor() {
this.receivedLogs = [];
}
log(data) {
this.receivedLogs.push(data);
}
size() {
return this.receivedLogs.length;
}
toString() {
return JSON.stringify({ logs: this.receivedLogs });
}
[symbols_1.cloneMethod]() {
return new ContextImplem();
}
}
function context() {
return (0, constant_1.constant)(new ContextImplem());
}