recon-generate 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +18 -0
- package/dist/info.d.ts +39 -0
- package/dist/info.js +984 -0
- package/dist/templates/targets/managers-targets.js +4 -4
- package/dist/z3Solver.d.ts +11 -0
- package/dist/z3Solver.js +425 -0
- package/package.json +3 -2
- package/dist/templates/wake/conftest.d.ts +0 -1
- package/dist/templates/wake/conftest.js +0 -18
- package/dist/templates/wake/flows.d.ts +0 -1
- package/dist/templates/wake/flows.js +0 -18
- package/dist/templates/wake/fuzz-test.d.ts +0 -1
- package/dist/templates/wake/fuzz-test.js +0 -62
- package/dist/templates/wake/helpers.d.ts +0 -2
- package/dist/templates/wake/helpers.js +0 -81
- package/dist/templates/wake/invariants.d.ts +0 -1
- package/dist/templates/wake/invariants.js +0 -21
- package/dist/templates/wake/test_fuzz.d.ts +0 -1
- package/dist/templates/wake/test_fuzz.js +0 -27
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.invariantsTemplate = void 0;
|
|
7
|
-
const handlebars_1 = __importDefault(require("handlebars"));
|
|
8
|
-
const helpers_1 = require("./helpers");
|
|
9
|
-
(0, helpers_1.registerWakeHelpers)(handlebars_1.default);
|
|
10
|
-
exports.invariantsTemplate = handlebars_1.default.compile(`
|
|
11
|
-
from wake.testing import *
|
|
12
|
-
from wake.testing.fuzzing import *
|
|
13
|
-
|
|
14
|
-
class Invariants:
|
|
15
|
-
@invariant()
|
|
16
|
-
def invariant_placeholder(self) -> None:
|
|
17
|
-
"""
|
|
18
|
-
Placeholder invariant - replace with your actual property checks.
|
|
19
|
-
"""
|
|
20
|
-
pass
|
|
21
|
-
`, { noEscape: true });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fuzzTestTemplate: HandlebarsTemplateDelegate<any>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.fuzzTestTemplate = void 0;
|
|
7
|
-
const handlebars_1 = __importDefault(require("handlebars"));
|
|
8
|
-
const handlebars_helpers_1 = require("./handlebars_helpers");
|
|
9
|
-
(0, handlebars_helpers_1.registerWakeHelpers)(handlebars_1.default);
|
|
10
|
-
exports.fuzzTestTemplate = handlebars_1.default.compile(`"""
|
|
11
|
-
{{pascal suiteName}} Fuzz Test
|
|
12
|
-
"""
|
|
13
|
-
from wake.testing import *
|
|
14
|
-
from wake.testing.fuzzing import *
|
|
15
|
-
|
|
16
|
-
from .setup import Setup
|
|
17
|
-
from .target_functions import TargetFunctions
|
|
18
|
-
from .properties import Properties
|
|
19
|
-
from .before_after import BeforeAfter
|
|
20
|
-
|
|
21
|
-
class {{pascal suiteName}}FuzzTest(FuzzTest, Setup, TargetFunctions, Properties, BeforeAfter):
|
|
22
|
-
def pre_sequence(self) -> None:
|
|
23
|
-
self.setup()
|
|
24
|
-
|
|
25
|
-
def test_{{snake suiteName}}_fuzz():
|
|
26
|
-
{{pascal suiteName}}FuzzTest().run(sequences_count=10, flows_count=100)
|
|
27
|
-
`);
|