@goast/typescript 0.4.4 → 0.5.1-k6.1
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/LICENSE +21 -21
- package/README.md +52 -52
- package/assets/client/angular/angular-service.utils.ts +82 -82
- package/assets/client/angular/request-builder.ts +377 -377
- package/assets/client/fetch/fetch-client.utils.ts +52 -52
- package/assets/client/k6/request-builder.js +419 -418
- package/assets/client/k6/request-builder.ts +341 -0
- package/assets/stubs/easy-network-stub/easy-network-stub.utils.ts +259 -259
- package/esm/src/file-builder.js +1 -1
- package/esm/src/generators/services/angular-services/angular-service-generator.d.ts +1 -0
- package/esm/src/generators/services/angular-services/angular-service-generator.d.ts.map +1 -1
- package/esm/src/generators/services/angular-services/angular-service-generator.js +31 -30
- package/esm/src/generators/services/angular-services/models.d.ts +6 -1
- package/esm/src/generators/services/angular-services/models.d.ts.map +1 -1
- package/esm/src/generators/services/angular-services/models.js +2 -1
- package/esm/src/generators/services/easy-network-stub/easy-network-stub-generator.js +9 -9
- package/esm/src/generators/services/fetch-clients/fetch-client-generator.js +2 -2
- package/esm/src/generators/services/k6-clients/k6-client-generator.d.ts +2 -2
- package/esm/src/generators/services/k6-clients/k6-client-generator.d.ts.map +1 -1
- package/esm/src/generators/services/k6-clients/k6-client-generator.js +109 -57
- package/esm/src/generators/services/k6-clients/k6-clients-generator.d.ts.map +1 -1
- package/esm/src/generators/services/k6-clients/k6-clients-generator.js +5 -2
- package/esm/src/generators/services/k6-clients/models.d.ts +5 -0
- package/esm/src/generators/services/k6-clients/models.d.ts.map +1 -1
- package/esm/src/generators/services/k6-clients/models.js +1 -1
- package/esm/src/generators/services/k6-clients/refs.d.ts.map +1 -1
- package/esm/src/generators/services/k6-clients/refs.js +2 -1
- package/package.json +2 -5
- package/script/src/file-builder.js +1 -1
- package/script/src/generators/services/angular-services/angular-service-generator.d.ts +1 -0
- package/script/src/generators/services/angular-services/angular-service-generator.d.ts.map +1 -1
- package/script/src/generators/services/angular-services/angular-service-generator.js +31 -30
- package/script/src/generators/services/angular-services/models.d.ts +6 -1
- package/script/src/generators/services/angular-services/models.d.ts.map +1 -1
- package/script/src/generators/services/angular-services/models.js +2 -1
- package/script/src/generators/services/easy-network-stub/easy-network-stub-generator.js +9 -9
- package/script/src/generators/services/fetch-clients/fetch-client-generator.js +2 -2
- package/script/src/generators/services/k6-clients/k6-client-generator.d.ts +2 -2
- package/script/src/generators/services/k6-clients/k6-client-generator.d.ts.map +1 -1
- package/script/src/generators/services/k6-clients/k6-client-generator.js +109 -57
- package/script/src/generators/services/k6-clients/k6-clients-generator.d.ts.map +1 -1
- package/script/src/generators/services/k6-clients/k6-clients-generator.js +5 -2
- package/script/src/generators/services/k6-clients/models.d.ts +5 -0
- package/script/src/generators/services/k6-clients/models.d.ts.map +1 -1
- package/script/src/generators/services/k6-clients/models.js +1 -1
- package/script/src/generators/services/k6-clients/refs.d.ts.map +1 -1
- package/script/src/generators/services/k6-clients/refs.js +2 -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 -6
- package/esm/_dnt.test_shims.d.ts.map +0 -1
- package/esm/_dnt.test_shims.js +0 -61
- 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/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.js +0 -183
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.d.ts +0 -35
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.js +0 -58
- 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/is_error.d.ts +0 -25
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.js +0 -54
- 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/rejects.d.ts +0 -42
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.js +0 -53
- 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/_mock_utils.d.ts +0 -15
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.js +0 -35
- 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/deps/jsr.io/@std/testing/1.0.9/mock.d.ts +0 -674
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.js +0 -1083
- package/esm/src/ast/nodes/argument.test.d.ts +0 -2
- package/esm/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/argument.test.js +0 -34
- package/esm/src/ast/nodes/array-type.test.d.ts +0 -2
- package/esm/src/ast/nodes/array-type.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/array-type.test.js +0 -26
- package/esm/src/ast/nodes/arrow-function.test.d.ts +0 -2
- package/esm/src/ast/nodes/arrow-function.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/arrow-function.test.js +0 -62
- package/esm/src/ast/nodes/class.test.d.ts +0 -2
- package/esm/src/ast/nodes/class.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/class.test.js +0 -150
- package/esm/src/ast/nodes/constructor-parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/constructor-parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/constructor-parameter.test.js +0 -99
- package/esm/src/ast/nodes/constructor.test.d.ts +0 -2
- package/esm/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/constructor.test.js +0 -102
- package/esm/src/ast/nodes/decorator.test.d.ts +0 -2
- package/esm/src/ast/nodes/decorator.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/decorator.test.js +0 -47
- package/esm/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc-tag.test.js +0 -30
- package/esm/src/ast/nodes/doc.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc.test.js +0 -31
- package/esm/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum-value.test.js +0 -52
- package/esm/src/ast/nodes/enum.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum.test.js +0 -66
- package/esm/src/ast/nodes/export.test.d.ts +0 -2
- package/esm/src/ast/nodes/export.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/export.test.js +0 -22
- package/esm/src/ast/nodes/function-type.test.d.ts +0 -2
- package/esm/src/ast/nodes/function-type.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/function-type.test.js +0 -48
- package/esm/src/ast/nodes/function.test.d.ts +0 -2
- package/esm/src/ast/nodes/function.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/function.test.js +0 -108
- package/esm/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/generic-parameter.test.js +0 -70
- package/esm/src/ast/nodes/indexer.test.d.ts +0 -2
- package/esm/src/ast/nodes/indexer.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/indexer.test.js +0 -32
- package/esm/src/ast/nodes/interface.test.d.ts +0 -2
- package/esm/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/interface.test.js +0 -115
- package/esm/src/ast/nodes/intersection-type.test.d.ts +0 -2
- package/esm/src/ast/nodes/intersection-type.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/intersection-type.test.js +0 -38
- package/esm/src/ast/nodes/method.test.d.ts +0 -2
- package/esm/src/ast/nodes/method.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/method.test.js +0 -148
- package/esm/src/ast/nodes/object-type.test.d.ts +0 -2
- package/esm/src/ast/nodes/object-type.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/object-type.test.js +0 -30
- package/esm/src/ast/nodes/object.test.d.ts +0 -2
- package/esm/src/ast/nodes/object.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/object.test.js +0 -30
- package/esm/src/ast/nodes/parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/parameter.test.js +0 -71
- package/esm/src/ast/nodes/property-accessor.test.d.ts +0 -2
- package/esm/src/ast/nodes/property-accessor.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/property-accessor.test.js +0 -102
- package/esm/src/ast/nodes/property.test.d.ts +0 -2
- package/esm/src/ast/nodes/property.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/property.test.js +0 -89
- package/esm/src/ast/nodes/reference.test.d.ts +0 -2
- package/esm/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/reference.test.js +0 -31
- package/esm/src/ast/nodes/string.test.d.ts +0 -2
- package/esm/src/ast/nodes/string.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/string.test.js +0 -28
- package/esm/src/ast/nodes/tuple.test.d.ts +0 -2
- package/esm/src/ast/nodes/tuple.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/tuple.test.js +0 -33
- package/esm/src/ast/nodes/type-alias.test.d.ts +0 -2
- package/esm/src/ast/nodes/type-alias.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/type-alias.test.js +0 -27
- package/esm/src/ast/nodes/union-type.test.d.ts +0 -2
- package/esm/src/ast/nodes/union-type.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/union-type.test.js +0 -38
- package/esm/src/ast/nodes/variable.test.d.ts +0 -2
- package/esm/src/ast/nodes/variable.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/variable.test.js +0 -38
- package/esm/src/import-collection.test.d.ts +0 -2
- package/esm/src/import-collection.test.d.ts.map +0 -1
- package/esm/src/import-collection.test.js +0 -64
- package/esm/tests/openapi-models.test.d.ts +0 -2
- package/esm/tests/openapi-models.test.d.ts.map +0 -1
- package/esm/tests/openapi-models.test.js +0 -45
- 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 -6
- package/script/_dnt.test_shims.d.ts.map +0 -1
- package/script/_dnt.test_shims.js +0 -65
- 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/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.js +0 -187
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.d.ts +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.js +0 -61
- 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/is_error.d.ts +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.js +0 -57
- 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/rejects.d.ts +0 -42
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.js +0 -56
- 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/_mock_utils.d.ts +0 -15
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.js +0 -41
- 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/deps/jsr.io/@std/testing/1.0.9/mock.d.ts +0 -674
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.js +0 -1102
- package/script/src/ast/nodes/argument.test.d.ts +0 -2
- package/script/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/script/src/ast/nodes/argument.test.js +0 -36
- package/script/src/ast/nodes/array-type.test.d.ts +0 -2
- package/script/src/ast/nodes/array-type.test.d.ts.map +0 -1
- package/script/src/ast/nodes/array-type.test.js +0 -28
- package/script/src/ast/nodes/arrow-function.test.d.ts +0 -2
- package/script/src/ast/nodes/arrow-function.test.d.ts.map +0 -1
- package/script/src/ast/nodes/arrow-function.test.js +0 -64
- package/script/src/ast/nodes/class.test.d.ts +0 -2
- package/script/src/ast/nodes/class.test.d.ts.map +0 -1
- package/script/src/ast/nodes/class.test.js +0 -152
- package/script/src/ast/nodes/constructor-parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/constructor-parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/constructor-parameter.test.js +0 -101
- package/script/src/ast/nodes/constructor.test.d.ts +0 -2
- package/script/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/script/src/ast/nodes/constructor.test.js +0 -104
- package/script/src/ast/nodes/decorator.test.d.ts +0 -2
- package/script/src/ast/nodes/decorator.test.d.ts.map +0 -1
- package/script/src/ast/nodes/decorator.test.js +0 -49
- package/script/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/script/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc-tag.test.js +0 -32
- package/script/src/ast/nodes/doc.test.d.ts +0 -2
- package/script/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc.test.js +0 -33
- package/script/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/script/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum-value.test.js +0 -54
- package/script/src/ast/nodes/enum.test.d.ts +0 -2
- package/script/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum.test.js +0 -68
- package/script/src/ast/nodes/export.test.d.ts +0 -2
- package/script/src/ast/nodes/export.test.d.ts.map +0 -1
- package/script/src/ast/nodes/export.test.js +0 -24
- package/script/src/ast/nodes/function-type.test.d.ts +0 -2
- package/script/src/ast/nodes/function-type.test.d.ts.map +0 -1
- package/script/src/ast/nodes/function-type.test.js +0 -50
- package/script/src/ast/nodes/function.test.d.ts +0 -2
- package/script/src/ast/nodes/function.test.d.ts.map +0 -1
- package/script/src/ast/nodes/function.test.js +0 -110
- package/script/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/generic-parameter.test.js +0 -72
- package/script/src/ast/nodes/indexer.test.d.ts +0 -2
- package/script/src/ast/nodes/indexer.test.d.ts.map +0 -1
- package/script/src/ast/nodes/indexer.test.js +0 -34
- package/script/src/ast/nodes/interface.test.d.ts +0 -2
- package/script/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/script/src/ast/nodes/interface.test.js +0 -117
- package/script/src/ast/nodes/intersection-type.test.d.ts +0 -2
- package/script/src/ast/nodes/intersection-type.test.d.ts.map +0 -1
- package/script/src/ast/nodes/intersection-type.test.js +0 -40
- package/script/src/ast/nodes/method.test.d.ts +0 -2
- package/script/src/ast/nodes/method.test.d.ts.map +0 -1
- package/script/src/ast/nodes/method.test.js +0 -150
- package/script/src/ast/nodes/object-type.test.d.ts +0 -2
- package/script/src/ast/nodes/object-type.test.d.ts.map +0 -1
- package/script/src/ast/nodes/object-type.test.js +0 -32
- package/script/src/ast/nodes/object.test.d.ts +0 -2
- package/script/src/ast/nodes/object.test.d.ts.map +0 -1
- package/script/src/ast/nodes/object.test.js +0 -32
- package/script/src/ast/nodes/parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/parameter.test.js +0 -73
- package/script/src/ast/nodes/property-accessor.test.d.ts +0 -2
- package/script/src/ast/nodes/property-accessor.test.d.ts.map +0 -1
- package/script/src/ast/nodes/property-accessor.test.js +0 -104
- package/script/src/ast/nodes/property.test.d.ts +0 -2
- package/script/src/ast/nodes/property.test.d.ts.map +0 -1
- package/script/src/ast/nodes/property.test.js +0 -91
- package/script/src/ast/nodes/reference.test.d.ts +0 -2
- package/script/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/script/src/ast/nodes/reference.test.js +0 -33
- package/script/src/ast/nodes/string.test.d.ts +0 -2
- package/script/src/ast/nodes/string.test.d.ts.map +0 -1
- package/script/src/ast/nodes/string.test.js +0 -30
- package/script/src/ast/nodes/tuple.test.d.ts +0 -2
- package/script/src/ast/nodes/tuple.test.d.ts.map +0 -1
- package/script/src/ast/nodes/tuple.test.js +0 -35
- package/script/src/ast/nodes/type-alias.test.d.ts +0 -2
- package/script/src/ast/nodes/type-alias.test.d.ts.map +0 -1
- package/script/src/ast/nodes/type-alias.test.js +0 -29
- package/script/src/ast/nodes/union-type.test.d.ts +0 -2
- package/script/src/ast/nodes/union-type.test.d.ts.map +0 -1
- package/script/src/ast/nodes/union-type.test.js +0 -40
- package/script/src/ast/nodes/variable.test.d.ts +0 -2
- package/script/src/ast/nodes/variable.test.d.ts.map +0 -1
- package/script/src/ast/nodes/variable.test.js +0 -40
- package/script/src/import-collection.test.d.ts +0 -2
- package/script/src/import-collection.test.d.ts.map +0 -1
- package/script/src/import-collection.test.js +0 -66
- package/script/tests/openapi-models.test.d.ts +0 -2
- package/script/tests/openapi-models.test.d.ts.map +0 -1
- package/script/tests/openapi-models.test.js +0 -48
- package/src/_dnt.test_polyfills.ts +0 -70
- package/src/_dnt.test_shims.ts +0 -64
- 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/equal.ts +0 -210
- package/src/deps/jsr.io/@std/assert/1.0.11/equals.ts +0 -65
- 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/is_error.ts +0 -65
- 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/rejects.ts +0 -123
- 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/_mock_utils.ts +0 -43
- 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/deps/jsr.io/@std/testing/1.0.9/mock.ts +0 -1807
- package/src/mod.ts +0 -7
- package/src/src/assets.ts +0 -9
- package/src/src/ast/_index.ts +0 -54
- package/src/src/ast/common.ts +0 -1
- package/src/src/ast/index.ts +0 -1
- package/src/src/ast/node.ts +0 -10
- package/src/src/ast/nodes/argument.test.ts +0 -43
- package/src/src/ast/nodes/argument.ts +0 -40
- package/src/src/ast/nodes/array-type.test.ts +0 -34
- package/src/src/ast/nodes/array-type.ts +0 -49
- package/src/src/ast/nodes/arrow-function.test.ts +0 -79
- package/src/src/ast/nodes/arrow-function.ts +0 -91
- package/src/src/ast/nodes/call.ts +0 -55
- package/src/src/ast/nodes/class.test.ts +0 -185
- package/src/src/ast/nodes/class.ts +0 -133
- package/src/src/ast/nodes/constructor-parameter.test.ts +0 -122
- package/src/src/ast/nodes/constructor-parameter.ts +0 -70
- package/src/src/ast/nodes/constructor.test.ts +0 -131
- package/src/src/ast/nodes/constructor.ts +0 -77
- package/src/src/ast/nodes/decorator.test.ts +0 -59
- package/src/src/ast/nodes/decorator.ts +0 -76
- package/src/src/ast/nodes/doc-tag.test.ts +0 -40
- package/src/src/ast/nodes/doc-tag.ts +0 -291
- package/src/src/ast/nodes/doc.test.ts +0 -40
- package/src/src/ast/nodes/doc.ts +0 -102
- package/src/src/ast/nodes/enum-value.test.ts +0 -66
- package/src/src/ast/nodes/enum-value.ts +0 -72
- package/src/src/ast/nodes/enum.test.ts +0 -85
- package/src/src/ast/nodes/enum.ts +0 -77
- package/src/src/ast/nodes/export.test.ts +0 -29
- package/src/src/ast/nodes/export.ts +0 -54
- package/src/src/ast/nodes/function-type.test.ts +0 -61
- package/src/src/ast/nodes/function-type.ts +0 -60
- package/src/src/ast/nodes/function.test.ts +0 -135
- package/src/src/ast/nodes/function.ts +0 -107
- package/src/src/ast/nodes/generic-parameter.test.ts +0 -86
- package/src/src/ast/nodes/generic-parameter.ts +0 -71
- package/src/src/ast/nodes/indexer.test.ts +0 -42
- package/src/src/ast/nodes/indexer.ts +0 -60
- package/src/src/ast/nodes/interface.test.ts +0 -142
- package/src/src/ast/nodes/interface.ts +0 -117
- package/src/src/ast/nodes/intersection-type.test.ts +0 -52
- package/src/src/ast/nodes/intersection-type.ts +0 -67
- package/src/src/ast/nodes/lookup-type.ts +0 -53
- package/src/src/ast/nodes/method.test.ts +0 -185
- package/src/src/ast/nodes/method.ts +0 -138
- package/src/src/ast/nodes/object-type.test.ts +0 -40
- package/src/src/ast/nodes/object-type.ts +0 -52
- package/src/src/ast/nodes/object.test.ts +0 -40
- package/src/src/ast/nodes/object.ts +0 -48
- package/src/src/ast/nodes/parameter.test.ts +0 -88
- package/src/src/ast/nodes/parameter.ts +0 -85
- package/src/src/ast/nodes/property-accessor.test.ts +0 -132
- package/src/src/ast/nodes/property-accessor.ts +0 -173
- package/src/src/ast/nodes/property.test.ts +0 -113
- package/src/src/ast/nodes/property.ts +0 -192
- package/src/src/ast/nodes/reference.test.ts +0 -42
- package/src/src/ast/nodes/reference.ts +0 -194
- package/src/src/ast/nodes/string.test.ts +0 -35
- package/src/src/ast/nodes/string.ts +0 -49
- package/src/src/ast/nodes/tuple.test.ts +0 -45
- package/src/src/ast/nodes/tuple.ts +0 -53
- package/src/src/ast/nodes/type-alias.test.ts +0 -35
- package/src/src/ast/nodes/type-alias.ts +0 -75
- package/src/src/ast/nodes/typeof.ts +0 -42
- package/src/src/ast/nodes/types.ts +0 -40
- package/src/src/ast/nodes/union-type.test.ts +0 -50
- package/src/src/ast/nodes/union-type.ts +0 -62
- package/src/src/ast/nodes/variable.test.ts +0 -49
- package/src/src/ast/nodes/variable.ts +0 -73
- package/src/src/ast/references/angular.ts +0 -24
- package/src/src/ast/references/easy-network-stub.ts +0 -21
- package/src/src/ast/references/index.ts +0 -5
- package/src/src/ast/references/k6.ts +0 -8
- package/src/src/ast/references/rxjs.ts +0 -7
- package/src/src/ast/references/typescript.ts +0 -35
- package/src/src/ast/utils/get-type-script-builder-options.ts +0 -19
- package/src/src/ast/utils/to-ts-node.ts +0 -27
- package/src/src/ast/utils/write-ts-generic-parameters.ts +0 -25
- package/src/src/ast/utils/write-ts-members.ts +0 -28
- package/src/src/ast/utils/write-ts-nodes.ts +0 -35
- package/src/src/ast/utils/write-ts-parameters.ts +0 -25
- package/src/src/common-results.ts +0 -26
- package/src/src/config.ts +0 -89
- package/src/src/file-builder.ts +0 -136
- package/src/src/generators/file-generator.ts +0 -15
- package/src/src/generators/index.ts +0 -6
- package/src/src/generators/models/index.ts +0 -3
- package/src/src/generators/models/model-generator.ts +0 -469
- package/src/src/generators/models/models-generator.ts +0 -108
- package/src/src/generators/models/models.ts +0 -112
- package/src/src/generators/services/angular-services/angular-service-generator.ts +0 -404
- package/src/src/generators/services/angular-services/angular-services-generator.ts +0 -295
- package/src/src/generators/services/angular-services/index.ts +0 -3
- package/src/src/generators/services/angular-services/models.ts +0 -270
- package/src/src/generators/services/angular-services/refs.ts +0 -54
- package/src/src/generators/services/easy-network-stub/easy-network-stub-generator.ts +0 -242
- package/src/src/generators/services/easy-network-stub/easy-network-stubs-generator.ts +0 -211
- package/src/src/generators/services/easy-network-stub/index.ts +0 -3
- package/src/src/generators/services/easy-network-stub/models.ts +0 -124
- package/src/src/generators/services/easy-network-stub/refs.ts +0 -45
- package/src/src/generators/services/fetch-clients/fetch-client-generator.ts +0 -267
- package/src/src/generators/services/fetch-clients/fetch-clients-generator.ts +0 -163
- package/src/src/generators/services/fetch-clients/index.ts +0 -3
- package/src/src/generators/services/fetch-clients/models.ts +0 -130
- package/src/src/generators/services/fetch-clients/refs.ts +0 -21
- package/src/src/generators/services/k6-clients/index.ts +0 -3
- package/src/src/generators/services/k6-clients/k6-client-generator.ts +0 -409
- package/src/src/generators/services/k6-clients/k6-clients-generator.ts +0 -165
- package/src/src/generators/services/k6-clients/models.ts +0 -241
- package/src/src/generators/services/k6-clients/refs.ts +0 -15
- package/src/src/import-collection.test.ts +0 -78
- package/src/src/import-collection.ts +0 -236
- package/src/src/utils.ts +0 -72
- package/src/tests/openapi-models.test.ts +0 -64
- package/test_runner.js +0 -239
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// This module is browser compatible.
|
|
3
|
-
import { AssertionError } from "./assertion_error.js";
|
|
4
|
-
import { assertIsError } from "./is_error.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Executes a function which returns a promise, expecting it to reject.
|
|
8
|
-
*
|
|
9
|
-
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
10
|
-
*
|
|
11
|
-
* @example Usage
|
|
12
|
-
* ```ts ignore
|
|
13
|
-
* import { assertRejects } from "@std/assert";
|
|
14
|
-
*
|
|
15
|
-
* await assertRejects(async () => Promise.reject(new Error())); // Doesn't throw
|
|
16
|
-
* await assertRejects(async () => console.log("Hello world")); // Throws
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param fn The function to execute.
|
|
20
|
-
* @param msg The optional message to display if the assertion fails.
|
|
21
|
-
* @returns The promise which resolves to the thrown error.
|
|
22
|
-
*/
|
|
23
|
-
export function assertRejects(
|
|
24
|
-
fn: () => PromiseLike<unknown>,
|
|
25
|
-
msg?: string,
|
|
26
|
-
): Promise<unknown>;
|
|
27
|
-
/**
|
|
28
|
-
* Executes a function which returns a promise, expecting it to reject.
|
|
29
|
-
* If it does not, then it throws. An error class and a string that should be
|
|
30
|
-
* included in the error message can also be asserted.
|
|
31
|
-
*
|
|
32
|
-
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
33
|
-
*
|
|
34
|
-
* @example Usage
|
|
35
|
-
* ```ts ignore
|
|
36
|
-
* import { assertRejects } from "@std/assert";
|
|
37
|
-
*
|
|
38
|
-
* await assertRejects(async () => Promise.reject(new Error()), Error); // Doesn't throw
|
|
39
|
-
* await assertRejects(async () => Promise.reject(new Error()), SyntaxError); // Throws
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @typeParam E The error class to assert.
|
|
43
|
-
* @param fn The function to execute.
|
|
44
|
-
* @param ErrorClass The error class to assert.
|
|
45
|
-
* @param msgIncludes The string that should be included in the error message.
|
|
46
|
-
* @param msg The optional message to display if the assertion fails.
|
|
47
|
-
* @returns The promise which resolves to the thrown error.
|
|
48
|
-
*/
|
|
49
|
-
export function assertRejects<E extends Error = Error>(
|
|
50
|
-
fn: () => PromiseLike<unknown>,
|
|
51
|
-
// deno-lint-ignore no-explicit-any
|
|
52
|
-
ErrorClass: abstract new (...args: any[]) => E,
|
|
53
|
-
msgIncludes?: string,
|
|
54
|
-
msg?: string,
|
|
55
|
-
): Promise<E>;
|
|
56
|
-
export async function assertRejects<E extends Error = Error>(
|
|
57
|
-
fn: () => PromiseLike<unknown>,
|
|
58
|
-
errorClassOrMsg?:
|
|
59
|
-
// deno-lint-ignore no-explicit-any
|
|
60
|
-
| (abstract new (...args: any[]) => E)
|
|
61
|
-
| string,
|
|
62
|
-
msgIncludesOrMsg?: string,
|
|
63
|
-
msg?: string,
|
|
64
|
-
): Promise<E | Error | unknown> {
|
|
65
|
-
// deno-lint-ignore no-explicit-any
|
|
66
|
-
let ErrorClass: (abstract new (...args: any[]) => E) | undefined;
|
|
67
|
-
let msgIncludes: string | undefined;
|
|
68
|
-
let err;
|
|
69
|
-
|
|
70
|
-
if (typeof errorClassOrMsg !== "string") {
|
|
71
|
-
if (
|
|
72
|
-
errorClassOrMsg === undefined ||
|
|
73
|
-
errorClassOrMsg.prototype instanceof Error ||
|
|
74
|
-
errorClassOrMsg.prototype === Error.prototype
|
|
75
|
-
) {
|
|
76
|
-
ErrorClass = errorClassOrMsg;
|
|
77
|
-
msgIncludes = msgIncludesOrMsg;
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
msg = errorClassOrMsg;
|
|
81
|
-
}
|
|
82
|
-
let doesThrow = false;
|
|
83
|
-
let isPromiseReturned = false;
|
|
84
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
85
|
-
try {
|
|
86
|
-
const possiblePromise = fn();
|
|
87
|
-
if (
|
|
88
|
-
possiblePromise &&
|
|
89
|
-
typeof possiblePromise === "object" &&
|
|
90
|
-
typeof possiblePromise.then === "function"
|
|
91
|
-
) {
|
|
92
|
-
isPromiseReturned = true;
|
|
93
|
-
await possiblePromise;
|
|
94
|
-
} else {
|
|
95
|
-
throw new Error();
|
|
96
|
-
}
|
|
97
|
-
} catch (error) {
|
|
98
|
-
if (!isPromiseReturned) {
|
|
99
|
-
throw new AssertionError(
|
|
100
|
-
`Function throws when expected to reject${msgSuffix}`,
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
if (ErrorClass) {
|
|
104
|
-
if (!(error instanceof Error)) {
|
|
105
|
-
throw new AssertionError(`A non-Error object was rejected${msgSuffix}`);
|
|
106
|
-
}
|
|
107
|
-
assertIsError(
|
|
108
|
-
error,
|
|
109
|
-
ErrorClass,
|
|
110
|
-
msgIncludes,
|
|
111
|
-
msg,
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
err = error;
|
|
115
|
-
doesThrow = true;
|
|
116
|
-
}
|
|
117
|
-
if (!doesThrow) {
|
|
118
|
-
throw new AssertionError(
|
|
119
|
-
`Expected function to reject${msgSuffix}`,
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
return err;
|
|
123
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// This module is browser compatible.
|
|
3
|
-
import { buildMessage } from "../../internal/1.0.5/build_message.js";
|
|
4
|
-
import { diff } from "../../internal/1.0.5/diff.js";
|
|
5
|
-
import { diffStr } from "../../internal/1.0.5/diff_str.js";
|
|
6
|
-
import { format } from "../../internal/1.0.5/format.js";
|
|
7
|
-
import { red } from "../../internal/1.0.5/styles.js";
|
|
8
|
-
import { AssertionError } from "./assertion_error.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Make an assertion that `actual` and `expected` are strictly equal, using
|
|
12
|
-
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
|
13
|
-
*
|
|
14
|
-
* @example Usage
|
|
15
|
-
* ```ts ignore
|
|
16
|
-
* import { assertStrictEquals } from "@std/assert";
|
|
17
|
-
*
|
|
18
|
-
* const a = {};
|
|
19
|
-
* const b = a;
|
|
20
|
-
* assertStrictEquals(a, b); // Doesn't throw
|
|
21
|
-
*
|
|
22
|
-
* const c = {};
|
|
23
|
-
* const d = {};
|
|
24
|
-
* assertStrictEquals(c, d); // Throws
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @typeParam T The type of the expected value.
|
|
28
|
-
* @param actual The actual value to compare.
|
|
29
|
-
* @param expected The expected value to compare.
|
|
30
|
-
* @param msg The optional message to display if the assertion fails.
|
|
31
|
-
*/
|
|
32
|
-
export function assertStrictEquals<T>(
|
|
33
|
-
actual: unknown,
|
|
34
|
-
expected: T,
|
|
35
|
-
msg?: string,
|
|
36
|
-
): asserts actual is T {
|
|
37
|
-
if (Object.is(actual, expected)) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
42
|
-
let message: string;
|
|
43
|
-
|
|
44
|
-
const actualString = format(actual);
|
|
45
|
-
const expectedString = format(expected);
|
|
46
|
-
|
|
47
|
-
if (actualString === expectedString) {
|
|
48
|
-
const withOffset = actualString
|
|
49
|
-
.split("\n")
|
|
50
|
-
.map((l) => ` ${l}`)
|
|
51
|
-
.join("\n");
|
|
52
|
-
message =
|
|
53
|
-
`Values have the same structure but are not reference-equal${msgSuffix}\n\n${
|
|
54
|
-
red(withOffset)
|
|
55
|
-
}\n`;
|
|
56
|
-
} else {
|
|
57
|
-
const stringDiff = (typeof actual === "string") &&
|
|
58
|
-
(typeof expected === "string");
|
|
59
|
-
const diffResult = stringDiff
|
|
60
|
-
? diffStr(actual as string, expected as string)
|
|
61
|
-
: diff(actualString.split("\n"), expectedString.split("\n"));
|
|
62
|
-
const diffMsg = buildMessage(diffResult, { stringDiff }).join("\n");
|
|
63
|
-
message = `Values are not strictly equal${msgSuffix}\n${diffMsg}`;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
throw new AssertionError(message);
|
|
67
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
|
|
3
|
-
// This file is copied from `std/assert`.
|
|
4
|
-
|
|
5
|
-
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
6
|
-
import { buildEqualErrorMessage } from "./_build_message.js";
|
|
7
|
-
import { equal } from "./_equal.js";
|
|
8
|
-
import type { EqualOptions } from "./_types.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
12
|
-
* deeply equal, then throw.
|
|
13
|
-
*
|
|
14
|
-
* Type parameter can be specified to ensure values under comparison have the
|
|
15
|
-
* same type.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts ignore
|
|
19
|
-
* import { assertEquals } from "@std/assert";
|
|
20
|
-
*
|
|
21
|
-
* assertEquals("world", "world"); // Doesn't throw
|
|
22
|
-
* assertEquals("hello", "world"); // Throws
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* Note: formatter option is experimental and may be removed in the future.
|
|
26
|
-
*/
|
|
27
|
-
export function assertEquals<T>(
|
|
28
|
-
actual: T,
|
|
29
|
-
expected: T,
|
|
30
|
-
options?: EqualOptions,
|
|
31
|
-
) {
|
|
32
|
-
if (equal(actual, expected, options)) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const message = buildEqualErrorMessage(actual, expected, options ?? {});
|
|
37
|
-
throw new AssertionError(message);
|
|
38
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// This module is browser compatible.
|
|
3
|
-
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
4
|
-
import { stripAnsiCode } from "../../internal/1.0.5/styles.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Make an assertion that `error` is an `Error`.
|
|
8
|
-
* If not then an error will be thrown.
|
|
9
|
-
* An error class and a string that should be included in the
|
|
10
|
-
* error message can also be asserted.
|
|
11
|
-
*
|
|
12
|
-
* @typeParam E The type of the error to assert.
|
|
13
|
-
* @param error The error to assert.
|
|
14
|
-
* @param ErrorClass The optional error class to assert.
|
|
15
|
-
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
16
|
-
* @param msg The optional message to display if the assertion fails.
|
|
17
|
-
*/
|
|
18
|
-
export function assertIsError<E extends Error = Error>(
|
|
19
|
-
error: unknown,
|
|
20
|
-
// deno-lint-ignore no-explicit-any
|
|
21
|
-
ErrorClass?: abstract new (...args: any[]) => E,
|
|
22
|
-
msgMatches?: string | RegExp,
|
|
23
|
-
msg?: string,
|
|
24
|
-
): asserts error is E {
|
|
25
|
-
const msgPrefix = msg ? `${msg}: ` : "";
|
|
26
|
-
if (!(error instanceof Error)) {
|
|
27
|
-
throw new AssertionError(
|
|
28
|
-
`${msgPrefix}Expected "error" to be an Error object.`,
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
if (ErrorClass && !(error instanceof ErrorClass)) {
|
|
32
|
-
msg =
|
|
33
|
-
`${msgPrefix}Expected error to be instance of "${ErrorClass.name}", but was "${error?.constructor?.name}".`;
|
|
34
|
-
throw new AssertionError(msg);
|
|
35
|
-
}
|
|
36
|
-
let msgCheck;
|
|
37
|
-
if (typeof msgMatches === "string") {
|
|
38
|
-
msgCheck = stripAnsiCode(error.message).includes(
|
|
39
|
-
stripAnsiCode(msgMatches),
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
if (msgMatches instanceof RegExp) {
|
|
43
|
-
msgCheck = msgMatches.test(stripAnsiCode(error.message));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (msgMatches && !msgCheck) {
|
|
47
|
-
msg = `${msgPrefix}Expected error message to include ${
|
|
48
|
-
msgMatches instanceof RegExp
|
|
49
|
-
? msgMatches.toString()
|
|
50
|
-
: JSON.stringify(msgMatches)
|
|
51
|
-
}, but got ${JSON.stringify(error?.message)}.`;
|
|
52
|
-
throw new AssertionError(msg);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
|
|
3
|
-
// This file is copied from `std/assert`.
|
|
4
|
-
|
|
5
|
-
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
6
|
-
import { buildNotEqualErrorMessage } from "./_build_message.js";
|
|
7
|
-
import { equal } from "./_equal.js";
|
|
8
|
-
import type { EqualOptions } from "./_types.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
12
|
-
* If not then throw.
|
|
13
|
-
*
|
|
14
|
-
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts ignore
|
|
18
|
-
* import { assertNotEquals } from "@std/assert";
|
|
19
|
-
*
|
|
20
|
-
* assertNotEquals(1, 2); // Doesn't throw
|
|
21
|
-
* assertNotEquals(1, 1); // Throws
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export function assertNotEquals<T>(
|
|
25
|
-
actual: T,
|
|
26
|
-
expected: T,
|
|
27
|
-
options: EqualOptions = {},
|
|
28
|
-
) {
|
|
29
|
-
if (!equal(actual, expected, options)) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const message = buildNotEqualErrorMessage(actual, expected, options ?? {});
|
|
34
|
-
throw new AssertionError(message);
|
|
35
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
|
|
3
|
-
import { getAssertionState } from "../../internal/1.0.5/assertion_state.js";
|
|
4
|
-
|
|
5
|
-
const assertionState = getAssertionState();
|
|
6
|
-
|
|
7
|
-
export function hasAssertions() {
|
|
8
|
-
assertionState.setAssertionCheck(true);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function assertions(num: number) {
|
|
12
|
-
assertionState.setAssertionCount(num);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function emitAssertionTrigger() {
|
|
16
|
-
assertionState.setAssertionTriggered(true);
|
|
17
|
-
assertionState.updateAssertionTriggerCount();
|
|
18
|
-
}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// deno-lint-ignore-file no-explicit-any
|
|
3
|
-
|
|
4
|
-
import { getCustomEqualityTesters } from "./_custom_equality_tester.js";
|
|
5
|
-
import { equal } from "./_equal.js";
|
|
6
|
-
|
|
7
|
-
export abstract class AsymmetricMatcher<T> {
|
|
8
|
-
constructor(
|
|
9
|
-
protected value: T,
|
|
10
|
-
protected inverse: boolean = false,
|
|
11
|
-
) {}
|
|
12
|
-
abstract equals(other: unknown): boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class Anything extends AsymmetricMatcher<void> {
|
|
16
|
-
equals(other: unknown): boolean {
|
|
17
|
-
return other !== null && other !== undefined;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function anything(): Anything {
|
|
22
|
-
return new Anything();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class Any extends AsymmetricMatcher<any> {
|
|
26
|
-
constructor(value: unknown) {
|
|
27
|
-
if (value === undefined) {
|
|
28
|
-
throw new TypeError("Expected a constructor function");
|
|
29
|
-
}
|
|
30
|
-
super(value);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
equals(other: unknown): boolean {
|
|
34
|
-
if (typeof other === "object") {
|
|
35
|
-
return other instanceof this.value;
|
|
36
|
-
} else {
|
|
37
|
-
if (this.value === Number) {
|
|
38
|
-
return typeof other === "number";
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (this.value === String) {
|
|
42
|
-
return typeof other === "string";
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (this.value === Number) {
|
|
46
|
-
return typeof other === "number";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (this.value === Function) {
|
|
50
|
-
return typeof other === "function";
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (this.value === Boolean) {
|
|
54
|
-
return typeof other === "boolean";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (this.value === BigInt) {
|
|
58
|
-
return typeof other === "bigint";
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (this.value === Symbol) {
|
|
62
|
-
return typeof other === "symbol";
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function any(c: unknown): Any {
|
|
70
|
-
return new Any(c);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export class ArrayContaining extends AsymmetricMatcher<any[]> {
|
|
74
|
-
constructor(arr: any[], inverse = false) {
|
|
75
|
-
super(arr, inverse);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
equals(other: any[]): boolean {
|
|
79
|
-
const res = Array.isArray(other) &&
|
|
80
|
-
this.value.every((e) =>
|
|
81
|
-
other.some((another) =>
|
|
82
|
-
equal(e, another, { customTesters: getCustomEqualityTesters() })
|
|
83
|
-
)
|
|
84
|
-
);
|
|
85
|
-
return this.inverse ? !res : res;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function arrayContaining(c: any[]): ArrayContaining {
|
|
90
|
-
return new ArrayContaining(c);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function arrayNotContaining(c: any[]): ArrayContaining {
|
|
94
|
-
return new ArrayContaining(c, true);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export class CloseTo extends AsymmetricMatcher<number> {
|
|
98
|
-
readonly #precision: number;
|
|
99
|
-
|
|
100
|
-
constructor(num: number, precision: number = 2) {
|
|
101
|
-
super(num);
|
|
102
|
-
this.#precision = precision;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
equals(other: number): boolean {
|
|
106
|
-
if (typeof other !== "number") {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
(this.value === Number.POSITIVE_INFINITY &&
|
|
112
|
-
other === Number.POSITIVE_INFINITY) ||
|
|
113
|
-
(this.value === Number.NEGATIVE_INFINITY &&
|
|
114
|
-
other === Number.NEGATIVE_INFINITY)
|
|
115
|
-
) {
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return Math.abs(this.value - other) < Math.pow(10, -this.#precision) / 2;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function closeTo(num: number, numDigits?: number): CloseTo {
|
|
124
|
-
return new CloseTo(num, numDigits);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export class StringContaining extends AsymmetricMatcher<string> {
|
|
128
|
-
constructor(str: string, inverse = false) {
|
|
129
|
-
super(str, inverse);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
equals(other: string): boolean {
|
|
133
|
-
const res = typeof other !== "string" ? false : other.includes(this.value);
|
|
134
|
-
return this.inverse ? !res : res;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function stringContaining(str: string): StringContaining {
|
|
139
|
-
return new StringContaining(str);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function stringNotContaining(str: string): StringContaining {
|
|
143
|
-
return new StringContaining(str, true);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export class StringMatching extends AsymmetricMatcher<RegExp> {
|
|
147
|
-
constructor(pattern: string | RegExp, inverse = false) {
|
|
148
|
-
super(new RegExp(pattern), inverse);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
equals(other: string): boolean {
|
|
152
|
-
const res = typeof other !== "string" ? false : this.value.test(other);
|
|
153
|
-
return this.inverse ? !res : res;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export function stringMatching(pattern: string | RegExp): StringMatching {
|
|
158
|
-
return new StringMatching(pattern);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export function stringNotMatching(pattern: string | RegExp): StringMatching {
|
|
162
|
-
return new StringMatching(pattern, true);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export class ObjectContaining
|
|
166
|
-
extends AsymmetricMatcher<Record<string, unknown>> {
|
|
167
|
-
constructor(obj: Record<string, unknown>, inverse = false) {
|
|
168
|
-
super(obj, inverse);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
equals(other: Record<string, unknown>): boolean {
|
|
172
|
-
const keys = Object.keys(this.value);
|
|
173
|
-
let res = true;
|
|
174
|
-
|
|
175
|
-
for (const key of keys) {
|
|
176
|
-
if (
|
|
177
|
-
!Object.hasOwn(other, key) ||
|
|
178
|
-
!equal(this.value[key], other[key])
|
|
179
|
-
) {
|
|
180
|
-
res = false;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return this.inverse ? !res : res;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export function objectContaining(
|
|
189
|
-
obj: Record<string, unknown>,
|
|
190
|
-
): ObjectContaining {
|
|
191
|
-
return new ObjectContaining(obj);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export function objectNotContaining(
|
|
195
|
-
obj: Record<string, unknown>,
|
|
196
|
-
): ObjectContaining {
|
|
197
|
-
return new ObjectContaining(obj, true);
|
|
198
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
|
|
3
|
-
import { buildMessage } from "../../internal/1.0.5/build_message.js";
|
|
4
|
-
import { diff } from "../../internal/1.0.5/diff.js";
|
|
5
|
-
import { diffStr } from "../../internal/1.0.5/diff_str.js";
|
|
6
|
-
import { format } from "../../internal/1.0.5/format.js";
|
|
7
|
-
import type { EqualOptions } from "./_types.js";
|
|
8
|
-
|
|
9
|
-
type EqualErrorMessageOptions = Pick<
|
|
10
|
-
EqualOptions,
|
|
11
|
-
"formatter" | "msg"
|
|
12
|
-
>;
|
|
13
|
-
|
|
14
|
-
function isString(value: unknown): value is string {
|
|
15
|
-
return typeof value === "string";
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function buildEqualErrorMessage<T>(
|
|
19
|
-
actual: T,
|
|
20
|
-
expected: T,
|
|
21
|
-
options: EqualErrorMessageOptions,
|
|
22
|
-
): string {
|
|
23
|
-
const { formatter = format, msg } = options ?? {};
|
|
24
|
-
const msgPrefix = msg ? `${msg}: ` : "";
|
|
25
|
-
const actualString = formatter(actual);
|
|
26
|
-
const expectedString = formatter(expected);
|
|
27
|
-
|
|
28
|
-
let message = `${msgPrefix}Values are not equal.`;
|
|
29
|
-
|
|
30
|
-
const stringDiff = isString(actual) && isString(expected);
|
|
31
|
-
const diffResult = stringDiff
|
|
32
|
-
? diffStr(actual, expected)
|
|
33
|
-
: diff(actualString.split("\n"), expectedString.split("\n"));
|
|
34
|
-
const diffMsg = buildMessage(diffResult, { stringDiff }).join("\n");
|
|
35
|
-
message = `${message}\n${diffMsg}`;
|
|
36
|
-
|
|
37
|
-
return message;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function buildNotEqualErrorMessage<T>(
|
|
41
|
-
actual: T,
|
|
42
|
-
expected: T,
|
|
43
|
-
options: EqualErrorMessageOptions,
|
|
44
|
-
): string {
|
|
45
|
-
const { msg } = options ?? {};
|
|
46
|
-
const actualString = String(actual);
|
|
47
|
-
const expectedString = String(expected);
|
|
48
|
-
|
|
49
|
-
const msgPrefix = msg ? `${msg}: ` : "";
|
|
50
|
-
return `${msgPrefix}Expected actual: ${actualString} not to be: ${expectedString}.`;
|
|
51
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
|
|
3
|
-
import type { Tester } from "./_types.js";
|
|
4
|
-
|
|
5
|
-
const customEqualityTesters: Tester[] = [];
|
|
6
|
-
|
|
7
|
-
export function addCustomEqualityTesters(newTesters: Tester[]) {
|
|
8
|
-
if (!Array.isArray(newTesters)) {
|
|
9
|
-
throw new TypeError(
|
|
10
|
-
`customEqualityTester expects an array of Testers. But got ${typeof newTesters}`,
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
customEqualityTesters.push(...newTesters);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function getCustomEqualityTesters() {
|
|
18
|
-
return customEqualityTesters;
|
|
19
|
-
}
|