@goast/core 0.4.1 → 0.4.2
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/esm/src/transform/helpers.d.ts.map +1 -1
- package/esm/src/transform/helpers.js +5 -1
- package/esm/src/utils/source-builder.d.ts +2 -0
- package/esm/src/utils/source-builder.d.ts.map +1 -1
- package/esm/src/utils/source-builder.js +7 -1
- package/package.json +1 -4
- package/script/src/transform/helpers.d.ts.map +1 -1
- package/script/src/transform/helpers.js +5 -1
- package/script/src/utils/source-builder.d.ts +2 -0
- package/script/src/utils/source-builder.d.ts.map +1 -1
- package/script/src/utils/source-builder.js +8 -1
- package/src/src/transform/helpers.ts +6 -1
- package/src/src/utils/source-builder.ts +9 -1
- package/esm/_dnt.test_polyfills.d.ts +0 -29
- package/esm/_dnt.test_polyfills.d.ts.map +0 -1
- package/esm/_dnt.test_polyfills.js +0 -31
- package/esm/_dnt.test_shims.d.ts +0 -14
- package/esm/_dnt.test_shims.d.ts.map +0 -1
- package/esm/_dnt.test_shims.js +0 -69
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -43
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -26
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -13
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -161
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -191
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -12
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -714
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -218
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -523
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -85
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -88
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -199
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -111
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -277
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -180
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -380
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -654
- package/esm/src/collect/helpers.test.d.ts +0 -2
- package/esm/src/collect/helpers.test.d.ts.map +0 -1
- package/esm/src/collect/helpers.test.js +0 -77
- package/esm/src/transform/helpers.test.d.ts +0 -2
- package/esm/src/transform/helpers.test.d.ts.map +0 -1
- package/esm/src/transform/helpers.test.js +0 -265
- package/esm/src/utils/action-provider.test.d.ts +0 -2
- package/esm/src/utils/action-provider.test.d.ts.map +0 -1
- package/esm/src/utils/action-provider.test.js +0 -28
- package/esm/src/utils/common.utils.test.d.ts +0 -2
- package/esm/src/utils/common.utils.test.d.ts.map +0 -1
- package/esm/src/utils/common.utils.test.js +0 -18
- package/esm/src/utils/condition.test.d.ts +0 -2
- package/esm/src/utils/condition.test.d.ts.map +0 -1
- package/esm/src/utils/condition.test.js +0 -31
- package/esm/src/utils/endpoint.utils.test.d.ts +0 -2
- package/esm/src/utils/endpoint.utils.test.d.ts.map +0 -1
- package/esm/src/utils/endpoint.utils.test.js +0 -31
- package/esm/src/utils/factory.test.d.ts +0 -2
- package/esm/src/utils/factory.test.d.ts.map +0 -1
- package/esm/src/utils/factory.test.js +0 -34
- package/esm/src/utils/generator.utils.test.d.ts +0 -2
- package/esm/src/utils/generator.utils.test.d.ts.map +0 -1
- package/esm/src/utils/generator.utils.test.js +0 -13
- package/esm/src/utils/object.utils.test.d.ts +0 -2
- package/esm/src/utils/object.utils.test.d.ts.map +0 -1
- package/esm/src/utils/object.utils.test.js +0 -29
- package/esm/src/utils/schema.utils.test.d.ts +0 -2
- package/esm/src/utils/schema.utils.test.d.ts.map +0 -1
- package/esm/src/utils/schema.utils.test.js +0 -70
- package/esm/src/utils/source-builder.test.d.ts +0 -2
- package/esm/src/utils/source-builder.test.d.ts.map +0 -1
- package/esm/src/utils/source-builder.test.js +0 -505
- package/esm/src/utils/string-builder/string-builder.test.d.ts +0 -2
- package/esm/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
- package/esm/src/utils/string-builder/string-builder.test.js +0 -163
- package/esm/src/utils/string.utils.test.d.ts +0 -2
- package/esm/src/utils/string.utils.test.d.ts.map +0 -1
- package/esm/src/utils/string.utils.test.js +0 -528
- package/esm/tests/openapi.test.d.ts +0 -2
- package/esm/tests/openapi.test.d.ts.map +0 -1
- package/esm/tests/openapi.test.js +0 -33
- package/esm/tests/schema-factory.d.ts +0 -42
- package/esm/tests/schema-factory.d.ts.map +0 -1
- package/esm/tests/schema-factory.js +0 -138
- package/script/_dnt.test_polyfills.d.ts +0 -29
- package/script/_dnt.test_polyfills.d.ts.map +0 -1
- package/script/_dnt.test_polyfills.js +0 -32
- package/script/_dnt.test_shims.d.ts +0 -14
- package/script/_dnt.test_shims.d.ts.map +0 -1
- package/script/_dnt.test_shims.js +0 -79
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -32
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -46
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -18
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -183
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -33
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -194
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -748
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -226
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -527
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -88
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -91
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -204
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -116
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -284
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -186
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/format.js +0 -41
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -220
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -385
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -665
- package/script/src/collect/helpers.test.d.ts +0 -2
- package/script/src/collect/helpers.test.d.ts.map +0 -1
- package/script/src/collect/helpers.test.js +0 -79
- package/script/src/transform/helpers.test.d.ts +0 -2
- package/script/src/transform/helpers.test.d.ts.map +0 -1
- package/script/src/transform/helpers.test.js +0 -267
- package/script/src/utils/action-provider.test.d.ts +0 -2
- package/script/src/utils/action-provider.test.d.ts.map +0 -1
- package/script/src/utils/action-provider.test.js +0 -30
- package/script/src/utils/common.utils.test.d.ts +0 -2
- package/script/src/utils/common.utils.test.d.ts.map +0 -1
- package/script/src/utils/common.utils.test.js +0 -20
- package/script/src/utils/condition.test.d.ts +0 -2
- package/script/src/utils/condition.test.d.ts.map +0 -1
- package/script/src/utils/condition.test.js +0 -33
- package/script/src/utils/endpoint.utils.test.d.ts +0 -2
- package/script/src/utils/endpoint.utils.test.d.ts.map +0 -1
- package/script/src/utils/endpoint.utils.test.js +0 -33
- package/script/src/utils/factory.test.d.ts +0 -2
- package/script/src/utils/factory.test.d.ts.map +0 -1
- package/script/src/utils/factory.test.js +0 -36
- package/script/src/utils/generator.utils.test.d.ts +0 -2
- package/script/src/utils/generator.utils.test.d.ts.map +0 -1
- package/script/src/utils/generator.utils.test.js +0 -15
- package/script/src/utils/object.utils.test.d.ts +0 -2
- package/script/src/utils/object.utils.test.d.ts.map +0 -1
- package/script/src/utils/object.utils.test.js +0 -31
- package/script/src/utils/schema.utils.test.d.ts +0 -2
- package/script/src/utils/schema.utils.test.d.ts.map +0 -1
- package/script/src/utils/schema.utils.test.js +0 -72
- package/script/src/utils/source-builder.test.d.ts +0 -2
- package/script/src/utils/source-builder.test.d.ts.map +0 -1
- package/script/src/utils/source-builder.test.js +0 -507
- package/script/src/utils/string-builder/string-builder.test.d.ts +0 -2
- package/script/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
- package/script/src/utils/string-builder/string-builder.test.js +0 -165
- package/script/src/utils/string.utils.test.d.ts +0 -2
- package/script/src/utils/string.utils.test.d.ts.map +0 -1
- package/script/src/utils/string.utils.test.js +0 -530
- package/script/tests/openapi.test.d.ts +0 -2
- package/script/tests/openapi.test.d.ts.map +0 -1
- package/script/tests/openapi.test.js +0 -35
- package/script/tests/schema-factory.d.ts +0 -42
- package/script/tests/schema-factory.d.ts.map +0 -1
- package/script/tests/schema-factory.js +0 -162
- package/src/_dnt.test_polyfills.ts +0 -70
- package/src/_dnt.test_shims.ts +0 -72
- package/src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.11/false.ts +0 -26
- package/src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.11/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.11/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.11/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts +0 -67
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_equals.ts +0 -38
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts +0 -54
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts +0 -35
- package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +0 -18
- package/src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts +0 -198
- package/src/deps/jsr.io/@std/expect/1.0.12/_build_message.ts +0 -51
- package/src/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.ts +0 -19
- package/src/deps/jsr.io/@std/expect/1.0.12/_equal.ts +0 -230
- package/src/deps/jsr.io/@std/expect/1.0.12/_extend.ts +0 -16
- package/src/deps/jsr.io/@std/expect/1.0.12/_inspect_args.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.12/_matchers.ts +0 -1028
- package/src/deps/jsr.io/@std/expect/1.0.12/_mock_util.ts +0 -22
- package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.12/_types.ts +0 -923
- package/src/deps/jsr.io/@std/expect/1.0.12/_utils.ts +0 -283
- package/src/deps/jsr.io/@std/expect/1.0.12/expect.ts +0 -620
- package/src/deps/jsr.io/@std/expect/1.0.12/fn.ts +0 -91
- package/src/deps/jsr.io/@std/expect/1.0.12/mod.ts +0 -89
- package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +0 -214
- package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +0 -134
- package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +0 -204
- package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +0 -39
- package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +0 -18
- package/src/deps/jsr.io/@std/testing/1.0.9/_test_suite.ts +0 -448
- package/src/deps/jsr.io/@std/testing/1.0.9/bdd.ts +0 -1288
- package/src/src/collect/helpers.test.ts +0 -91
- package/src/src/transform/helpers.test.ts +0 -316
- package/src/src/utils/action-provider.test.ts +0 -32
- package/src/src/utils/common.utils.test.ts +0 -22
- package/src/src/utils/condition.test.ts +0 -36
- package/src/src/utils/endpoint.utils.test.ts +0 -36
- package/src/src/utils/factory.test.ts +0 -31
- package/src/src/utils/generator.utils.test.ts +0 -16
- package/src/src/utils/object.utils.test.ts +0 -33
- package/src/src/utils/schema.utils.test.ts +0 -88
- package/src/src/utils/source-builder.test.ts +0 -657
- package/src/src/utils/string-builder/string-builder.test.ts +0 -188
- package/src/src/utils/string.utils.test.ts +0 -691
- package/src/tests/openapi.test.ts +0 -50
- package/src/tests/schema-factory.ts +0 -185
- package/test_runner.js +0 -221
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This module provides Jest compatible expect assertion functionality.
|
|
3
|
-
*
|
|
4
|
-
* ```ts no-assert
|
|
5
|
-
* import { expect } from "@std/expect";
|
|
6
|
-
*
|
|
7
|
-
* const x = 6 * 7;
|
|
8
|
-
* expect(x).toEqual(42);
|
|
9
|
-
* expect(x).not.toEqual(0);
|
|
10
|
-
*
|
|
11
|
-
* await expect(Promise.resolve(x)).resolves.toEqual(42);
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* Currently this module supports the following functions:
|
|
15
|
-
* - Common matchers:
|
|
16
|
-
* - {@linkcode Expected.toBe | toBe}
|
|
17
|
-
* - {@linkcode Expected.toEqual | toEqual}
|
|
18
|
-
* - {@linkcode Expected.toStrictEqual | toStrictEqual}
|
|
19
|
-
* - {@linkcode Expected.toMatch | toMatch}
|
|
20
|
-
* - {@linkcode Expected.toMatchObject | toMatchObject}
|
|
21
|
-
* - {@linkcode Expected.toBeDefined | toBeDefined}
|
|
22
|
-
* - {@linkcode Expected.toBeUndefined | toBeUndefined}
|
|
23
|
-
* - {@linkcode Expected.toBeNull | toBeNull}
|
|
24
|
-
* - {@linkcode Expected.toBeNaN | toBeNaN}
|
|
25
|
-
* - {@linkcode Expected.toBeTruthy | toBeTruthy}
|
|
26
|
-
* - {@linkcode Expected.toBeFalsy | toBeFalsy}
|
|
27
|
-
* - {@linkcode Expected.toContain | toContain}
|
|
28
|
-
* - {@linkcode Expected.toContainEqual | toContainEqual}
|
|
29
|
-
* - {@linkcode Expected.toHaveLength | toHaveLength}
|
|
30
|
-
* - {@linkcode Expected.toBeGreaterThan | toBeGreaterThan}
|
|
31
|
-
* - {@linkcode Expected.toBeGreaterThanOrEqual | toBeGreaterThanOrEqual}
|
|
32
|
-
* - {@linkcode Expected.toBeLessThan | toBeLessThan}
|
|
33
|
-
* - {@linkcode Expected.toBeLessThanOrEqual | toBeLessThanOrEqual}
|
|
34
|
-
* - {@linkcode Expected.toBeCloseTo | toBeCloseTo}
|
|
35
|
-
* - {@linkcode Expected.toBeInstanceOf | toBeInstanceOf}
|
|
36
|
-
* - {@linkcode Expected.toThrow | toThrow}
|
|
37
|
-
* - {@linkcode Expected.toHaveProperty | toHaveProperty}
|
|
38
|
-
* - Mock related matchers:
|
|
39
|
-
* - {@linkcode Expected.toHaveBeenCalled | toHaveBeenCalled}
|
|
40
|
-
* - {@linkcode Expected.toHaveBeenCalledTimes | toHaveBeenCalledTimes}
|
|
41
|
-
* - {@linkcode Expected.toHaveBeenCalledWith | toHaveBeenCalledWith}
|
|
42
|
-
* - {@linkcode Expected.toHaveBeenLastCalledWith | toHaveBeenLastCalledWith}
|
|
43
|
-
* - {@linkcode Expected.toHaveBeenNthCalledWith | toHaveBeenNthCalledWith}
|
|
44
|
-
* - {@linkcode Expected.toHaveReturned | toHaveReturned}
|
|
45
|
-
* - {@linkcode Expected.toHaveReturnedTimes | toHaveReturnedTimes}
|
|
46
|
-
* - {@linkcode Expected.toHaveReturnedWith | toHaveReturnedWith}
|
|
47
|
-
* - {@linkcode Expected.toHaveLastReturnedWith | toHaveLastReturnedWith}
|
|
48
|
-
* - {@linkcode Expected.toHaveNthReturnedWith | toHaveNthReturnedWith}
|
|
49
|
-
* - Asymmetric matchers:
|
|
50
|
-
* - {@linkcode expect.anything}
|
|
51
|
-
* - {@linkcode expect.any}
|
|
52
|
-
* - {@linkcode expect.arrayContaining}
|
|
53
|
-
* - {@linkcode expect.not.arrayContaining}
|
|
54
|
-
* - {@linkcode expect.objectContaining}
|
|
55
|
-
* - {@linkcode expect.not.objectContaining}
|
|
56
|
-
* - {@linkcode expect.closeTo}
|
|
57
|
-
* - {@linkcode expect.stringContaining}
|
|
58
|
-
* - {@linkcode expect.not.stringContaining}
|
|
59
|
-
* - {@linkcode expect.stringMatching}
|
|
60
|
-
* - {@linkcode expect.not.stringMatching}
|
|
61
|
-
* - Utilities:
|
|
62
|
-
* - {@linkcode expect.addSnapshotSerializer}
|
|
63
|
-
* - {@linkcode expect.assertions}
|
|
64
|
-
* - {@linkcode expect.addEqualityTester}
|
|
65
|
-
* - {@linkcode expect.extend}
|
|
66
|
-
* - {@linkcode expect.hasAssertions}
|
|
67
|
-
*
|
|
68
|
-
* Only these functions are still not available:
|
|
69
|
-
* - Matchers:
|
|
70
|
-
* - `toMatchSnapshot`
|
|
71
|
-
* - `toMatchInlineSnapshot`
|
|
72
|
-
* - `toThrowErrorMatchingSnapshot`
|
|
73
|
-
* - `toThrowErrorMatchingInlineSnapshot`
|
|
74
|
-
*
|
|
75
|
-
* The tracking issue to add support for unsupported parts of the API is
|
|
76
|
-
* {@link https://github.com/denoland/std/issues/3964}.
|
|
77
|
-
*
|
|
78
|
-
* This module is largely inspired by
|
|
79
|
-
* {@link https://github.com/allain/expect | x/expect} module by
|
|
80
|
-
* {@link https://github.com/allain | Allain Lalonde}.
|
|
81
|
-
*
|
|
82
|
-
* @module
|
|
83
|
-
*/
|
|
84
|
-
export * from "./expect.js";
|
|
85
|
-
export * from "./fn.js";
|
|
86
|
-
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/mod.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
-
// Copyright 2019 Allain Lalonde. All rights reserved. ISC License.
|
|
4
|
-
// This module is browser compatible.
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
/**
|
|
8
|
-
* This module provides Jest compatible expect assertion functionality.
|
|
9
|
-
*
|
|
10
|
-
* ```ts no-assert
|
|
11
|
-
* import { expect } from "@std/expect";
|
|
12
|
-
*
|
|
13
|
-
* const x = 6 * 7;
|
|
14
|
-
* expect(x).toEqual(42);
|
|
15
|
-
* expect(x).not.toEqual(0);
|
|
16
|
-
*
|
|
17
|
-
* await expect(Promise.resolve(x)).resolves.toEqual(42);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* Currently this module supports the following functions:
|
|
21
|
-
* - Common matchers:
|
|
22
|
-
* - {@linkcode Expected.toBe | toBe}
|
|
23
|
-
* - {@linkcode Expected.toEqual | toEqual}
|
|
24
|
-
* - {@linkcode Expected.toStrictEqual | toStrictEqual}
|
|
25
|
-
* - {@linkcode Expected.toMatch | toMatch}
|
|
26
|
-
* - {@linkcode Expected.toMatchObject | toMatchObject}
|
|
27
|
-
* - {@linkcode Expected.toBeDefined | toBeDefined}
|
|
28
|
-
* - {@linkcode Expected.toBeUndefined | toBeUndefined}
|
|
29
|
-
* - {@linkcode Expected.toBeNull | toBeNull}
|
|
30
|
-
* - {@linkcode Expected.toBeNaN | toBeNaN}
|
|
31
|
-
* - {@linkcode Expected.toBeTruthy | toBeTruthy}
|
|
32
|
-
* - {@linkcode Expected.toBeFalsy | toBeFalsy}
|
|
33
|
-
* - {@linkcode Expected.toContain | toContain}
|
|
34
|
-
* - {@linkcode Expected.toContainEqual | toContainEqual}
|
|
35
|
-
* - {@linkcode Expected.toHaveLength | toHaveLength}
|
|
36
|
-
* - {@linkcode Expected.toBeGreaterThan | toBeGreaterThan}
|
|
37
|
-
* - {@linkcode Expected.toBeGreaterThanOrEqual | toBeGreaterThanOrEqual}
|
|
38
|
-
* - {@linkcode Expected.toBeLessThan | toBeLessThan}
|
|
39
|
-
* - {@linkcode Expected.toBeLessThanOrEqual | toBeLessThanOrEqual}
|
|
40
|
-
* - {@linkcode Expected.toBeCloseTo | toBeCloseTo}
|
|
41
|
-
* - {@linkcode Expected.toBeInstanceOf | toBeInstanceOf}
|
|
42
|
-
* - {@linkcode Expected.toThrow | toThrow}
|
|
43
|
-
* - {@linkcode Expected.toHaveProperty | toHaveProperty}
|
|
44
|
-
* - Mock related matchers:
|
|
45
|
-
* - {@linkcode Expected.toHaveBeenCalled | toHaveBeenCalled}
|
|
46
|
-
* - {@linkcode Expected.toHaveBeenCalledTimes | toHaveBeenCalledTimes}
|
|
47
|
-
* - {@linkcode Expected.toHaveBeenCalledWith | toHaveBeenCalledWith}
|
|
48
|
-
* - {@linkcode Expected.toHaveBeenLastCalledWith | toHaveBeenLastCalledWith}
|
|
49
|
-
* - {@linkcode Expected.toHaveBeenNthCalledWith | toHaveBeenNthCalledWith}
|
|
50
|
-
* - {@linkcode Expected.toHaveReturned | toHaveReturned}
|
|
51
|
-
* - {@linkcode Expected.toHaveReturnedTimes | toHaveReturnedTimes}
|
|
52
|
-
* - {@linkcode Expected.toHaveReturnedWith | toHaveReturnedWith}
|
|
53
|
-
* - {@linkcode Expected.toHaveLastReturnedWith | toHaveLastReturnedWith}
|
|
54
|
-
* - {@linkcode Expected.toHaveNthReturnedWith | toHaveNthReturnedWith}
|
|
55
|
-
* - Asymmetric matchers:
|
|
56
|
-
* - {@linkcode expect.anything}
|
|
57
|
-
* - {@linkcode expect.any}
|
|
58
|
-
* - {@linkcode expect.arrayContaining}
|
|
59
|
-
* - {@linkcode expect.not.arrayContaining}
|
|
60
|
-
* - {@linkcode expect.objectContaining}
|
|
61
|
-
* - {@linkcode expect.not.objectContaining}
|
|
62
|
-
* - {@linkcode expect.closeTo}
|
|
63
|
-
* - {@linkcode expect.stringContaining}
|
|
64
|
-
* - {@linkcode expect.not.stringContaining}
|
|
65
|
-
* - {@linkcode expect.stringMatching}
|
|
66
|
-
* - {@linkcode expect.not.stringMatching}
|
|
67
|
-
* - Utilities:
|
|
68
|
-
* - {@linkcode expect.addSnapshotSerializer}
|
|
69
|
-
* - {@linkcode expect.assertions}
|
|
70
|
-
* - {@linkcode expect.addEqualityTester}
|
|
71
|
-
* - {@linkcode expect.extend}
|
|
72
|
-
* - {@linkcode expect.hasAssertions}
|
|
73
|
-
*
|
|
74
|
-
* Only these functions are still not available:
|
|
75
|
-
* - Matchers:
|
|
76
|
-
* - `toMatchSnapshot`
|
|
77
|
-
* - `toMatchInlineSnapshot`
|
|
78
|
-
* - `toThrowErrorMatchingSnapshot`
|
|
79
|
-
* - `toThrowErrorMatchingInlineSnapshot`
|
|
80
|
-
*
|
|
81
|
-
* The tracking issue to add support for unsupported parts of the API is
|
|
82
|
-
* {@link https://github.com/denoland/std/issues/3964}.
|
|
83
|
-
*
|
|
84
|
-
* This module is largely inspired by
|
|
85
|
-
* {@link https://github.com/allain/expect | x/expect} module by
|
|
86
|
-
* {@link https://github.com/allain | Allain Lalonde}.
|
|
87
|
-
*
|
|
88
|
-
* @module
|
|
89
|
-
*/
|
|
90
|
-
tslib_1.__exportStar(require("./expect.js"), exports);
|
|
91
|
-
tslib_1.__exportStar(require("./fn.js"), exports);
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check the test suite internal state
|
|
3
|
-
*
|
|
4
|
-
* @example Usage
|
|
5
|
-
* ```ts ignore
|
|
6
|
-
* import { AssertionState } from "@std/internal";
|
|
7
|
-
*
|
|
8
|
-
* const assertionState = new AssertionState();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export declare class AssertionState {
|
|
12
|
-
#private;
|
|
13
|
-
constructor();
|
|
14
|
-
/**
|
|
15
|
-
* Get the number that through `expect.assertions` api set.
|
|
16
|
-
*
|
|
17
|
-
* @returns the number that through `expect.assertions` api set.
|
|
18
|
-
*
|
|
19
|
-
* @example Usage
|
|
20
|
-
* ```ts ignore
|
|
21
|
-
* import { AssertionState } from "@std/internal";
|
|
22
|
-
*
|
|
23
|
-
* const assertionState = new AssertionState();
|
|
24
|
-
* assertionState.assertionCount;
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
get assertionCount(): number | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Get a certain number that assertions were called before.
|
|
30
|
-
*
|
|
31
|
-
* @returns return a certain number that assertions were called before.
|
|
32
|
-
*
|
|
33
|
-
* @example Usage
|
|
34
|
-
* ```ts ignore
|
|
35
|
-
* import { AssertionState } from "@std/internal";
|
|
36
|
-
*
|
|
37
|
-
* const assertionState = new AssertionState();
|
|
38
|
-
* assertionState.assertionTriggeredCount;
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
get assertionTriggeredCount(): number;
|
|
42
|
-
/**
|
|
43
|
-
* If `expect.hasAssertions` called, then through this method to update #state.assertionCheck value.
|
|
44
|
-
*
|
|
45
|
-
* @param val Set #state.assertionCheck's value
|
|
46
|
-
*
|
|
47
|
-
* @example Usage
|
|
48
|
-
* ```ts ignore
|
|
49
|
-
* import { AssertionState } from "@std/internal";
|
|
50
|
-
*
|
|
51
|
-
* const assertionState = new AssertionState();
|
|
52
|
-
* assertionState.setAssertionCheck(true);
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
setAssertionCheck(val: boolean): void;
|
|
56
|
-
/**
|
|
57
|
-
* If any matchers was called, `#state.assertionTriggered` will be set through this method.
|
|
58
|
-
*
|
|
59
|
-
* @param val Set #state.assertionTriggered's value
|
|
60
|
-
*
|
|
61
|
-
* @example Usage
|
|
62
|
-
* ```ts ignore
|
|
63
|
-
* import { AssertionState } from "@std/internal";
|
|
64
|
-
*
|
|
65
|
-
* const assertionState = new AssertionState();
|
|
66
|
-
* assertionState.setAssertionTriggered(true);
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
setAssertionTriggered(val: boolean): void;
|
|
70
|
-
/**
|
|
71
|
-
* If `expect.assertions` called, then through this method to update #state.assertionCheck value.
|
|
72
|
-
*
|
|
73
|
-
* @param num Set #state.assertionCount's value, for example if the value is set 2, that means
|
|
74
|
-
* you must have two assertion matchers call in your test suite.
|
|
75
|
-
*
|
|
76
|
-
* @example Usage
|
|
77
|
-
* ```ts ignore
|
|
78
|
-
* import { AssertionState } from "@std/internal";
|
|
79
|
-
*
|
|
80
|
-
* const assertionState = new AssertionState();
|
|
81
|
-
* assertionState.setAssertionCount(2);
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
setAssertionCount(num: number): void;
|
|
85
|
-
/**
|
|
86
|
-
* If any matchers was called, `#state.assertionTriggeredCount` value will plus one internally.
|
|
87
|
-
*
|
|
88
|
-
* @example Usage
|
|
89
|
-
* ```ts ignore
|
|
90
|
-
* import { AssertionState } from "@std/internal";
|
|
91
|
-
*
|
|
92
|
-
* const assertionState = new AssertionState();
|
|
93
|
-
* assertionState.updateAssertionTriggerCount();
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
updateAssertionTriggerCount(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Check Assertion internal state, if `#state.assertionCheck` is set true, but
|
|
99
|
-
* `#state.assertionTriggered` is still false, then should throw an Assertion Error.
|
|
100
|
-
*
|
|
101
|
-
* @returns a boolean value, that the test suite is satisfied with the check. If not,
|
|
102
|
-
* it should throw an AssertionError.
|
|
103
|
-
*
|
|
104
|
-
* @example Usage
|
|
105
|
-
* ```ts ignore
|
|
106
|
-
* import { AssertionState } from "@std/internal";
|
|
107
|
-
*
|
|
108
|
-
* const assertionState = new AssertionState();
|
|
109
|
-
* if (assertionState.checkAssertionErrorState()) {
|
|
110
|
-
* // throw AssertionError("");
|
|
111
|
-
* }
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
checkAssertionErrorState(): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Reset all assertion state when every test suite function ran completely.
|
|
117
|
-
*
|
|
118
|
-
* @example Usage
|
|
119
|
-
* ```ts ignore
|
|
120
|
-
* import { AssertionState } from "@std/internal";
|
|
121
|
-
*
|
|
122
|
-
* const assertionState = new AssertionState();
|
|
123
|
-
* assertionState.resetAssertionState();
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
resetAssertionState(): void;
|
|
127
|
-
/**
|
|
128
|
-
* Check Assertion called state, if `#state.assertionCount` is set to a number value, but
|
|
129
|
-
* `#state.assertionTriggeredCount` is less then it, then should throw an assertion error.
|
|
130
|
-
*
|
|
131
|
-
* @returns a boolean value, that the test suite is satisfied with the check. If not,
|
|
132
|
-
* it should throw an AssertionError.
|
|
133
|
-
*
|
|
134
|
-
* @example Usage
|
|
135
|
-
* ```ts ignore
|
|
136
|
-
* import { AssertionState } from "@std/internal";
|
|
137
|
-
*
|
|
138
|
-
* const assertionState = new AssertionState();
|
|
139
|
-
* if (assertionState.checkAssertionCountSatisfied()) {
|
|
140
|
-
* // throw AssertionError("");
|
|
141
|
-
* }
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
checkAssertionCountSatisfied(): boolean;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* return an instance of AssertionState
|
|
148
|
-
*
|
|
149
|
-
* @returns AssertionState
|
|
150
|
-
*
|
|
151
|
-
* @example Usage
|
|
152
|
-
* ```ts ignore
|
|
153
|
-
* import { getAssertionState } from "@std/internal";
|
|
154
|
-
*
|
|
155
|
-
* const assertionState = getAssertionState();
|
|
156
|
-
* assertionState.setAssertionTriggered(true);
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
export declare function getAssertionState(): AssertionState;
|
|
160
|
-
//# sourceMappingURL=assertion_state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_state.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,qBAAa,cAAc;;;IAiBzB;;;;;;;;;;;;OAYG;IACH,IAAI,cAAc,IAAI,MAAM,GAAG,SAAS,CAEvC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,uBAAuB,IAAI,MAAM,CAEpC;IAED;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,GAAG,EAAE,OAAO;IAI9B;;;;;;;;;;;;OAYG;IACH,qBAAqB,CAAC,GAAG,EAAE,OAAO;IAIlC;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM;IAI7B;;;;;;;;;;OAUG;IACH,2BAA2B;IAM3B;;;;;;;;;;;;;;;;OAgBG;IACH,wBAAwB,IAAI,OAAO;IAInC;;;;;;;;;;OAUG;IACH,mBAAmB,IAAI,IAAI;IAS3B;;;;;;;;;;;;;;;;OAgBG;IACH,4BAA4B,IAAI,OAAO;CAIxC;AAID;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAElD"}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
var _AssertionState_state;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.AssertionState = void 0;
|
|
6
|
-
exports.getAssertionState = getAssertionState;
|
|
7
|
-
const tslib_1 = require("tslib");
|
|
8
|
-
/**
|
|
9
|
-
* Check the test suite internal state
|
|
10
|
-
*
|
|
11
|
-
* @example Usage
|
|
12
|
-
* ```ts ignore
|
|
13
|
-
* import { AssertionState } from "@std/internal";
|
|
14
|
-
*
|
|
15
|
-
* const assertionState = new AssertionState();
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
class AssertionState {
|
|
19
|
-
constructor() {
|
|
20
|
-
_AssertionState_state.set(this, void 0);
|
|
21
|
-
tslib_1.__classPrivateFieldSet(this, _AssertionState_state, {
|
|
22
|
-
assertionCount: undefined,
|
|
23
|
-
assertionCheck: false,
|
|
24
|
-
assertionTriggered: false,
|
|
25
|
-
assertionTriggeredCount: 0,
|
|
26
|
-
}, "f");
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get the number that through `expect.assertions` api set.
|
|
30
|
-
*
|
|
31
|
-
* @returns the number that through `expect.assertions` api set.
|
|
32
|
-
*
|
|
33
|
-
* @example Usage
|
|
34
|
-
* ```ts ignore
|
|
35
|
-
* import { AssertionState } from "@std/internal";
|
|
36
|
-
*
|
|
37
|
-
* const assertionState = new AssertionState();
|
|
38
|
-
* assertionState.assertionCount;
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
get assertionCount() {
|
|
42
|
-
return tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Get a certain number that assertions were called before.
|
|
46
|
-
*
|
|
47
|
-
* @returns return a certain number that assertions were called before.
|
|
48
|
-
*
|
|
49
|
-
* @example Usage
|
|
50
|
-
* ```ts ignore
|
|
51
|
-
* import { AssertionState } from "@std/internal";
|
|
52
|
-
*
|
|
53
|
-
* const assertionState = new AssertionState();
|
|
54
|
-
* assertionState.assertionTriggeredCount;
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
get assertionTriggeredCount() {
|
|
58
|
-
return tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggeredCount;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* If `expect.hasAssertions` called, then through this method to update #state.assertionCheck value.
|
|
62
|
-
*
|
|
63
|
-
* @param val Set #state.assertionCheck's value
|
|
64
|
-
*
|
|
65
|
-
* @example Usage
|
|
66
|
-
* ```ts ignore
|
|
67
|
-
* import { AssertionState } from "@std/internal";
|
|
68
|
-
*
|
|
69
|
-
* const assertionState = new AssertionState();
|
|
70
|
-
* assertionState.setAssertionCheck(true);
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
setAssertionCheck(val) {
|
|
74
|
-
tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCheck = val;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* If any matchers was called, `#state.assertionTriggered` will be set through this method.
|
|
78
|
-
*
|
|
79
|
-
* @param val Set #state.assertionTriggered's value
|
|
80
|
-
*
|
|
81
|
-
* @example Usage
|
|
82
|
-
* ```ts ignore
|
|
83
|
-
* import { AssertionState } from "@std/internal";
|
|
84
|
-
*
|
|
85
|
-
* const assertionState = new AssertionState();
|
|
86
|
-
* assertionState.setAssertionTriggered(true);
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
setAssertionTriggered(val) {
|
|
90
|
-
tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggered = val;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* If `expect.assertions` called, then through this method to update #state.assertionCheck value.
|
|
94
|
-
*
|
|
95
|
-
* @param num Set #state.assertionCount's value, for example if the value is set 2, that means
|
|
96
|
-
* you must have two assertion matchers call in your test suite.
|
|
97
|
-
*
|
|
98
|
-
* @example Usage
|
|
99
|
-
* ```ts ignore
|
|
100
|
-
* import { AssertionState } from "@std/internal";
|
|
101
|
-
*
|
|
102
|
-
* const assertionState = new AssertionState();
|
|
103
|
-
* assertionState.setAssertionCount(2);
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
setAssertionCount(num) {
|
|
107
|
-
tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount = num;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* If any matchers was called, `#state.assertionTriggeredCount` value will plus one internally.
|
|
111
|
-
*
|
|
112
|
-
* @example Usage
|
|
113
|
-
* ```ts ignore
|
|
114
|
-
* import { AssertionState } from "@std/internal";
|
|
115
|
-
*
|
|
116
|
-
* const assertionState = new AssertionState();
|
|
117
|
-
* assertionState.updateAssertionTriggerCount();
|
|
118
|
-
* ```
|
|
119
|
-
*/
|
|
120
|
-
updateAssertionTriggerCount() {
|
|
121
|
-
if (tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount !== undefined) {
|
|
122
|
-
tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggeredCount += 1;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Check Assertion internal state, if `#state.assertionCheck` is set true, but
|
|
127
|
-
* `#state.assertionTriggered` is still false, then should throw an Assertion Error.
|
|
128
|
-
*
|
|
129
|
-
* @returns a boolean value, that the test suite is satisfied with the check. If not,
|
|
130
|
-
* it should throw an AssertionError.
|
|
131
|
-
*
|
|
132
|
-
* @example Usage
|
|
133
|
-
* ```ts ignore
|
|
134
|
-
* import { AssertionState } from "@std/internal";
|
|
135
|
-
*
|
|
136
|
-
* const assertionState = new AssertionState();
|
|
137
|
-
* if (assertionState.checkAssertionErrorState()) {
|
|
138
|
-
* // throw AssertionError("");
|
|
139
|
-
* }
|
|
140
|
-
* ```
|
|
141
|
-
*/
|
|
142
|
-
checkAssertionErrorState() {
|
|
143
|
-
return tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCheck && !tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggered;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Reset all assertion state when every test suite function ran completely.
|
|
147
|
-
*
|
|
148
|
-
* @example Usage
|
|
149
|
-
* ```ts ignore
|
|
150
|
-
* import { AssertionState } from "@std/internal";
|
|
151
|
-
*
|
|
152
|
-
* const assertionState = new AssertionState();
|
|
153
|
-
* assertionState.resetAssertionState();
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
resetAssertionState() {
|
|
157
|
-
tslib_1.__classPrivateFieldSet(this, _AssertionState_state, {
|
|
158
|
-
assertionCount: undefined,
|
|
159
|
-
assertionCheck: false,
|
|
160
|
-
assertionTriggered: false,
|
|
161
|
-
assertionTriggeredCount: 0,
|
|
162
|
-
}, "f");
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Check Assertion called state, if `#state.assertionCount` is set to a number value, but
|
|
166
|
-
* `#state.assertionTriggeredCount` is less then it, then should throw an assertion error.
|
|
167
|
-
*
|
|
168
|
-
* @returns a boolean value, that the test suite is satisfied with the check. If not,
|
|
169
|
-
* it should throw an AssertionError.
|
|
170
|
-
*
|
|
171
|
-
* @example Usage
|
|
172
|
-
* ```ts ignore
|
|
173
|
-
* import { AssertionState } from "@std/internal";
|
|
174
|
-
*
|
|
175
|
-
* const assertionState = new AssertionState();
|
|
176
|
-
* if (assertionState.checkAssertionCountSatisfied()) {
|
|
177
|
-
* // throw AssertionError("");
|
|
178
|
-
* }
|
|
179
|
-
* ```
|
|
180
|
-
*/
|
|
181
|
-
checkAssertionCountSatisfied() {
|
|
182
|
-
return tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount !== undefined &&
|
|
183
|
-
tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount !== tslib_1.__classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggeredCount;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
exports.AssertionState = AssertionState;
|
|
187
|
-
_AssertionState_state = new WeakMap();
|
|
188
|
-
const assertionState = new AssertionState();
|
|
189
|
-
/**
|
|
190
|
-
* return an instance of AssertionState
|
|
191
|
-
*
|
|
192
|
-
* @returns AssertionState
|
|
193
|
-
*
|
|
194
|
-
* @example Usage
|
|
195
|
-
* ```ts ignore
|
|
196
|
-
* import { getAssertionState } from "@std/internal";
|
|
197
|
-
*
|
|
198
|
-
* const assertionState = getAssertionState();
|
|
199
|
-
* assertionState.setAssertionTriggered(true);
|
|
200
|
-
* ```
|
|
201
|
-
*/
|
|
202
|
-
function getAssertionState() {
|
|
203
|
-
return assertionState;
|
|
204
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import type { DiffResult, DiffType } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Colors the output of assertion diffs.
|
|
4
|
-
*
|
|
5
|
-
* @param diffType Difference type, either added or removed.
|
|
6
|
-
* @param background If true, colors the background instead of the text.
|
|
7
|
-
*
|
|
8
|
-
* @returns A function that colors the input string.
|
|
9
|
-
*
|
|
10
|
-
* @example Usage
|
|
11
|
-
* ```ts
|
|
12
|
-
* import { createColor } from "@std/internal";
|
|
13
|
-
* import { assertEquals } from "@std/assert";
|
|
14
|
-
* import { bold, green, red, white } from "@std/fmt/colors";
|
|
15
|
-
*
|
|
16
|
-
* assertEquals(createColor("added")("foo"), green(bold("foo")));
|
|
17
|
-
* assertEquals(createColor("removed")("foo"), red(bold("foo")));
|
|
18
|
-
* assertEquals(createColor("common")("foo"), white("foo"));
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare function createColor(diffType: DiffType,
|
|
22
|
-
/**
|
|
23
|
-
* TODO(@littledivy): Remove this when we can detect true color terminals. See
|
|
24
|
-
* https://github.com/denoland/deno_std/issues/2575.
|
|
25
|
-
*/
|
|
26
|
-
background?: boolean): (s: string) => string;
|
|
27
|
-
/**
|
|
28
|
-
* Prefixes `+` or `-` in diff output.
|
|
29
|
-
*
|
|
30
|
-
* @param diffType Difference type, either added or removed
|
|
31
|
-
*
|
|
32
|
-
* @returns A string representing the sign.
|
|
33
|
-
*
|
|
34
|
-
* @example Usage
|
|
35
|
-
* ```ts
|
|
36
|
-
* import { createSign } from "@std/internal";
|
|
37
|
-
* import { assertEquals } from "@std/assert";
|
|
38
|
-
*
|
|
39
|
-
* assertEquals(createSign("added"), "+ ");
|
|
40
|
-
* assertEquals(createSign("removed"), "- ");
|
|
41
|
-
* assertEquals(createSign("common"), " ");
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function createSign(diffType: DiffType): string;
|
|
45
|
-
/** Options for {@linkcode buildMessage}. */
|
|
46
|
-
export interface BuildMessageOptions {
|
|
47
|
-
/**
|
|
48
|
-
* Whether to output the diff as a single string.
|
|
49
|
-
*
|
|
50
|
-
* @default {false}
|
|
51
|
-
*/
|
|
52
|
-
stringDiff?: boolean;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Builds a message based on the provided diff result.
|
|
56
|
-
*
|
|
57
|
-
* @param diffResult The diff result array.
|
|
58
|
-
* @param options Optional parameters for customizing the message.
|
|
59
|
-
*
|
|
60
|
-
* @returns An array of strings representing the built message.
|
|
61
|
-
*
|
|
62
|
-
* @example Usage
|
|
63
|
-
* ```ts no-assert
|
|
64
|
-
* import { diffStr, buildMessage } from "@std/internal";
|
|
65
|
-
*
|
|
66
|
-
* const diffResult = diffStr("Hello, world!", "Hello, world");
|
|
67
|
-
*
|
|
68
|
-
* console.log(buildMessage(diffResult));
|
|
69
|
-
* // [
|
|
70
|
-
* // "",
|
|
71
|
-
* // "",
|
|
72
|
-
* // " [Diff] Actual / Expected",
|
|
73
|
-
* // "",
|
|
74
|
-
* // "",
|
|
75
|
-
* // "- Hello, world!",
|
|
76
|
-
* // "+ Hello, world",
|
|
77
|
-
* // "",
|
|
78
|
-
* // ]
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
export declare function buildMessage(diffResult: ReadonlyArray<DiffResult<string>>, options?: BuildMessageOptions): string[];
|
|
82
|
-
//# sourceMappingURL=build_message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}
|