@goast/kotlin 0.4.4-beta2 → 0.4.5
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 +45 -45
- package/assets/client/okhttp3/ApiClient.kt +250 -250
- package/esm/_dnt.test_polyfills.d.ts +29 -0
- package/esm/_dnt.test_polyfills.d.ts.map +1 -0
- package/esm/_dnt.test_polyfills.js +31 -0
- package/esm/_dnt.test_shims.d.ts +6 -0
- package/esm/_dnt.test_shims.d.ts.map +1 -0
- package/esm/_dnt.test_shims.js +61 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/assertion_error.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.d.ts +17 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.js +183 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.d.ts +22 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.js +45 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.js +22 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.js +53 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts +25 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.js +54 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.js +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.js +29 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.js +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.js +32 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts +42 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.js +53 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts +24 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.js +57 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assert_equals.d.ts +20 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assert_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assert_equals.js +29 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assert_not_equals.d.ts +17 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assert_not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assert_not_equals.js +26 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assertions.d.ts +4 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assertions.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_assertions.js +13 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_asymmetric_matchers.d.ts +46 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_asymmetric_matchers.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_asymmetric_matchers.js +160 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_build_message.d.ts +6 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_build_message.js +29 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_custom_equality_tester.d.ts +4 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_custom_equality_tester.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_custom_equality_tester.js +11 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_equal.d.ts +9 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_equal.js +191 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_extend.d.ts +4 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_extend.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_extend.js +11 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_inspect_args.d.ts +3 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_inspect_args.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_inspect_args.js +12 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_matchers.d.ts +34 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_matchers.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_matchers.js +563 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_mock_util.d.ts +11 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_mock_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_mock_util.js +10 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_serializer.d.ts +4 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_serializer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_serializer.js +10 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_types.d.ts +839 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_types.js +3 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_utils.d.ts +9 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/_utils.js +218 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/expect.d.ts +60 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/expect.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.8/expect.js +523 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +199 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +82 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +111 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +277 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +180 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +37 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +207 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +2 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/_mock_utils.d.ts +15 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/_mock_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/_mock_utils.js +35 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/_test_suite.d.ts +74 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/_test_suite.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/_test_suite.js +350 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/bdd.d.ts +731 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/bdd.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/bdd.js +581 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/mock.d.ts +674 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/mock.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/1.0.5/mock.js +1083 -0
- package/esm/src/ast/nodes/annotation.test.d.ts +2 -0
- package/esm/src/ast/nodes/annotation.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/annotation.test.js +56 -0
- package/esm/src/ast/nodes/argument.test.d.ts +2 -0
- package/esm/src/ast/nodes/argument.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/argument.test.js +33 -0
- package/esm/src/ast/nodes/call.test.d.ts +2 -0
- package/esm/src/ast/nodes/call.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/call.test.js +35 -0
- package/esm/src/ast/nodes/class.test.d.ts +2 -0
- package/esm/src/ast/nodes/class.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/class.test.js +219 -0
- package/esm/src/ast/nodes/constructor.test.d.ts +2 -0
- package/esm/src/ast/nodes/constructor.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/constructor.test.js +139 -0
- package/esm/src/ast/nodes/doc-tag.test.d.ts +2 -0
- package/esm/src/ast/nodes/doc-tag.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/doc-tag.test.js +67 -0
- package/esm/src/ast/nodes/doc.test.d.ts +2 -0
- package/esm/src/ast/nodes/doc.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/doc.test.js +33 -0
- package/esm/src/ast/nodes/enum-value.test.d.ts +2 -0
- package/esm/src/ast/nodes/enum-value.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/enum-value.test.js +115 -0
- package/esm/src/ast/nodes/enum.test.d.ts +2 -0
- package/esm/src/ast/nodes/enum.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/enum.test.js +129 -0
- package/esm/src/ast/nodes/function.test.d.ts +2 -0
- package/esm/src/ast/nodes/function.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/function.test.js +160 -0
- package/esm/src/ast/nodes/generic-parameter.test.d.ts +2 -0
- package/esm/src/ast/nodes/generic-parameter.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/generic-parameter.test.js +49 -0
- package/esm/src/ast/nodes/init-block.test.d.ts +2 -0
- package/esm/src/ast/nodes/init-block.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/init-block.test.js +28 -0
- package/esm/src/ast/nodes/interface.test.d.ts +2 -0
- package/esm/src/ast/nodes/interface.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/interface.test.js +121 -0
- package/esm/src/ast/nodes/object.test.d.ts +2 -0
- package/esm/src/ast/nodes/object.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/object.test.js +78 -0
- package/esm/src/ast/nodes/parameter.test.d.ts +2 -0
- package/esm/src/ast/nodes/parameter.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/parameter.test.js +152 -0
- package/esm/src/ast/nodes/property.test.d.ts +2 -0
- package/esm/src/ast/nodes/property.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/property.test.js +206 -0
- package/esm/src/ast/nodes/reference.test.d.ts +2 -0
- package/esm/src/ast/nodes/reference.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/reference.test.js +36 -0
- package/esm/src/ast/nodes/string.test.d.ts +2 -0
- package/esm/src/ast/nodes/string.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/string.test.js +48 -0
- package/esm/src/config.d.ts +1 -0
- package/esm/src/config.d.ts.map +1 -1
- package/esm/src/config.js +1 -0
- package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +26 -26
- package/esm/src/generators/services/spring-controllers/args.d.ts +3 -0
- package/esm/src/generators/services/spring-controllers/args.d.ts.map +1 -1
- package/esm/src/generators/services/spring-controllers/spring-controller-generator.d.ts +1 -0
- package/esm/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
- package/esm/src/generators/services/spring-controllers/spring-controller-generator.js +11 -1
- package/esm/src/import-collection.test.d.ts +2 -0
- package/esm/src/import-collection.test.d.ts.map +1 -0
- package/esm/src/import-collection.test.js +99 -0
- package/esm/tests/openapi-models.test.d.ts +2 -0
- package/esm/tests/openapi-models.test.d.ts.map +1 -0
- package/esm/tests/openapi-models.test.js +45 -0
- package/package.json +2 -2
- package/script/_dnt.test_polyfills.d.ts +29 -0
- package/script/_dnt.test_polyfills.d.ts.map +1 -0
- package/script/_dnt.test_polyfills.js +32 -0
- package/script/_dnt.test_shims.d.ts +6 -0
- package/script/_dnt.test_shims.d.ts.map +1 -0
- package/script/_dnt.test_shims.js +65 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts +26 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/assertion_error.js +34 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/equal.d.ts +17 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/equal.js +187 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/equals.d.ts +22 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/equals.js +48 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/false.d.ts +18 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/false.js +25 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts +23 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/instance_of.js +56 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts +25 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/is_error.js +57 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/match.d.ts +18 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/match.js +29 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts +20 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_instance_of.js +32 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts +18 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_match.js +29 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts +23 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.js +35 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts +42 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/rejects.js +56 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts +24 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.8/strict_equals.js +60 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assert_equals.d.ts +20 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assert_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assert_equals.js +32 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assert_not_equals.d.ts +17 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assert_not_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assert_not_equals.js +29 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assertions.d.ts +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assertions.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_assertions.js +18 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_asymmetric_matchers.d.ts +46 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_asymmetric_matchers.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_asymmetric_matchers.js +182 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_build_message.d.ts +6 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_build_message.js +33 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_custom_equality_tester.d.ts +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_custom_equality_tester.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_custom_equality_tester.js +15 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_equal.d.ts +9 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_equal.js +194 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_extend.d.ts +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_extend.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_extend.js +15 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_inspect_args.d.ts +3 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_inspect_args.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_inspect_args.js +17 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_matchers.d.ts +34 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_matchers.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_matchers.js +597 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_mock_util.d.ts +11 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_mock_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_mock_util.js +14 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_serializer.d.ts +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_serializer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_serializer.js +14 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_types.d.ts +839 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_types.js +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_utils.d.ts +9 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/_utils.js +226 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/expect.d.ts +60 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/expect.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.8/expect.js +527 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +204 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +82 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +116 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +284 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +186 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/format.js +41 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +220 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/types.js +3 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/_mock_utils.d.ts +15 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/_mock_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/_mock_utils.js +41 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/_test_suite.d.ts +74 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/_test_suite.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/_test_suite.js +355 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/bdd.d.ts +731 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/bdd.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/bdd.js +592 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/mock.d.ts +674 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/mock.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/1.0.5/mock.js +1102 -0
- package/script/src/ast/nodes/annotation.test.d.ts +2 -0
- package/script/src/ast/nodes/annotation.test.d.ts.map +1 -0
- package/script/src/ast/nodes/annotation.test.js +58 -0
- package/script/src/ast/nodes/argument.test.d.ts +2 -0
- package/script/src/ast/nodes/argument.test.d.ts.map +1 -0
- package/script/src/ast/nodes/argument.test.js +35 -0
- package/script/src/ast/nodes/call.test.d.ts +2 -0
- package/script/src/ast/nodes/call.test.d.ts.map +1 -0
- package/script/src/ast/nodes/call.test.js +37 -0
- package/script/src/ast/nodes/class.test.d.ts +2 -0
- package/script/src/ast/nodes/class.test.d.ts.map +1 -0
- package/script/src/ast/nodes/class.test.js +221 -0
- package/script/src/ast/nodes/constructor.test.d.ts +2 -0
- package/script/src/ast/nodes/constructor.test.d.ts.map +1 -0
- package/script/src/ast/nodes/constructor.test.js +141 -0
- package/script/src/ast/nodes/doc-tag.test.d.ts +2 -0
- package/script/src/ast/nodes/doc-tag.test.d.ts.map +1 -0
- package/script/src/ast/nodes/doc-tag.test.js +69 -0
- package/script/src/ast/nodes/doc.test.d.ts +2 -0
- package/script/src/ast/nodes/doc.test.d.ts.map +1 -0
- package/script/src/ast/nodes/doc.test.js +35 -0
- package/script/src/ast/nodes/enum-value.test.d.ts +2 -0
- package/script/src/ast/nodes/enum-value.test.d.ts.map +1 -0
- package/script/src/ast/nodes/enum-value.test.js +117 -0
- package/script/src/ast/nodes/enum.test.d.ts +2 -0
- package/script/src/ast/nodes/enum.test.d.ts.map +1 -0
- package/script/src/ast/nodes/enum.test.js +131 -0
- package/script/src/ast/nodes/function.test.d.ts +2 -0
- package/script/src/ast/nodes/function.test.d.ts.map +1 -0
- package/script/src/ast/nodes/function.test.js +162 -0
- package/script/src/ast/nodes/generic-parameter.test.d.ts +2 -0
- package/script/src/ast/nodes/generic-parameter.test.d.ts.map +1 -0
- package/script/src/ast/nodes/generic-parameter.test.js +51 -0
- package/script/src/ast/nodes/init-block.test.d.ts +2 -0
- package/script/src/ast/nodes/init-block.test.d.ts.map +1 -0
- package/script/src/ast/nodes/init-block.test.js +30 -0
- package/script/src/ast/nodes/interface.test.d.ts +2 -0
- package/script/src/ast/nodes/interface.test.d.ts.map +1 -0
- package/script/src/ast/nodes/interface.test.js +123 -0
- package/script/src/ast/nodes/object.test.d.ts +2 -0
- package/script/src/ast/nodes/object.test.d.ts.map +1 -0
- package/script/src/ast/nodes/object.test.js +80 -0
- package/script/src/ast/nodes/parameter.test.d.ts +2 -0
- package/script/src/ast/nodes/parameter.test.d.ts.map +1 -0
- package/script/src/ast/nodes/parameter.test.js +154 -0
- package/script/src/ast/nodes/property.test.d.ts +2 -0
- package/script/src/ast/nodes/property.test.d.ts.map +1 -0
- package/script/src/ast/nodes/property.test.js +208 -0
- package/script/src/ast/nodes/reference.test.d.ts +2 -0
- package/script/src/ast/nodes/reference.test.d.ts.map +1 -0
- package/script/src/ast/nodes/reference.test.js +38 -0
- package/script/src/ast/nodes/string.test.d.ts +2 -0
- package/script/src/ast/nodes/string.test.d.ts.map +1 -0
- package/script/src/ast/nodes/string.test.js +50 -0
- package/script/src/config.d.ts +1 -0
- package/script/src/config.d.ts.map +1 -1
- package/script/src/config.js +1 -0
- package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +26 -26
- package/script/src/generators/services/spring-controllers/args.d.ts +3 -0
- package/script/src/generators/services/spring-controllers/args.d.ts.map +1 -1
- package/script/src/generators/services/spring-controllers/spring-controller-generator.d.ts +1 -0
- package/script/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
- package/script/src/generators/services/spring-controllers/spring-controller-generator.js +11 -1
- package/script/src/import-collection.test.d.ts +2 -0
- package/script/src/import-collection.test.d.ts.map +1 -0
- package/script/src/import-collection.test.js +101 -0
- package/script/tests/openapi-models.test.d.ts +2 -0
- package/script/tests/openapi-models.test.d.ts.map +1 -0
- package/script/tests/openapi-models.test.js +48 -0
- package/src/_dnt.test_polyfills.ts +70 -0
- package/src/_dnt.test_shims.ts +64 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/assertion_error.ts +31 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/equal.ts +210 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/equals.ts +52 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/false.ts +26 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/instance_of.ts +64 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/is_error.ts +65 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/not_instance_of.ts +33 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/not_match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.ts +42 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/rejects.ts +123 -0
- package/src/deps/jsr.io/@std/assert/1.0.8/strict_equals.ts +67 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_assert_equals.ts +38 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_assert_not_equals.ts +35 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_assertions.ts +18 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_asymmetric_matchers.ts +193 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_build_message.ts +51 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_custom_equality_tester.ts +19 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_equal.ts +230 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_extend.ts +16 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_inspect_args.ts +15 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_matchers.ts +832 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_mock_util.ts +22 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_serializer.ts +15 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_types.ts +919 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/_utils.ts +283 -0
- package/src/deps/jsr.io/@std/expect/1.0.8/expect.ts +620 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +214 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +134 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +317 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +204 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +39 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +233 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +18 -0
- package/src/deps/jsr.io/@std/testing/1.0.5/_mock_utils.ts +43 -0
- package/src/deps/jsr.io/@std/testing/1.0.5/_test_suite.ts +410 -0
- package/src/deps/jsr.io/@std/testing/1.0.5/bdd.ts +1211 -0
- package/src/deps/jsr.io/@std/testing/1.0.5/mock.ts +1807 -0
- package/src/mod.ts +8 -0
- package/src/src/assets.ts +9 -0
- package/src/src/ast/_index.ts +66 -0
- package/src/src/ast/common.ts +1 -0
- package/src/src/ast/index.ts +1 -0
- package/src/src/ast/node.ts +10 -0
- package/src/src/ast/nodes/annotation.test.ts +69 -0
- package/src/src/ast/nodes/annotation.ts +79 -0
- package/src/src/ast/nodes/argument.test.ts +41 -0
- package/src/src/ast/nodes/argument.ts +62 -0
- package/src/src/ast/nodes/call.test.ts +44 -0
- package/src/src/ast/nodes/call.ts +66 -0
- package/src/src/ast/nodes/class.test.ts +274 -0
- package/src/src/ast/nodes/class.ts +178 -0
- package/src/src/ast/nodes/collection-literal.ts +49 -0
- package/src/src/ast/nodes/constructor.test.ts +178 -0
- package/src/src/ast/nodes/constructor.ts +126 -0
- package/src/src/ast/nodes/doc-tag.test.ts +84 -0
- package/src/src/ast/nodes/doc-tag.ts +138 -0
- package/src/src/ast/nodes/doc.test.ts +42 -0
- package/src/src/ast/nodes/doc.ts +111 -0
- package/src/src/ast/nodes/enum-value.test.ts +146 -0
- package/src/src/ast/nodes/enum-value.ts +100 -0
- package/src/src/ast/nodes/enum.test.ts +167 -0
- package/src/src/ast/nodes/enum.ts +163 -0
- package/src/src/ast/nodes/function.test.ts +194 -0
- package/src/src/ast/nodes/function.ts +176 -0
- package/src/src/ast/nodes/generic-parameter.test.ts +60 -0
- package/src/src/ast/nodes/generic-parameter.ts +54 -0
- package/src/src/ast/nodes/init-block.test.ts +36 -0
- package/src/src/ast/nodes/init-block.ts +38 -0
- package/src/src/ast/nodes/interface.test.ts +151 -0
- package/src/src/ast/nodes/interface.ts +133 -0
- package/src/src/ast/nodes/lambda-type.ts +68 -0
- package/src/src/ast/nodes/lambda.ts +68 -0
- package/src/src/ast/nodes/object.test.ts +101 -0
- package/src/src/ast/nodes/object.ts +102 -0
- package/src/src/ast/nodes/parameter.test.ts +191 -0
- package/src/src/ast/nodes/parameter.ts +118 -0
- package/src/src/ast/nodes/property.test.ts +253 -0
- package/src/src/ast/nodes/property.ts +225 -0
- package/src/src/ast/nodes/reference.test.ts +47 -0
- package/src/src/ast/nodes/reference.ts +178 -0
- package/src/src/ast/nodes/string.test.ts +61 -0
- package/src/src/ast/nodes/string.ts +114 -0
- package/src/src/ast/nodes/types.ts +23 -0
- package/src/src/ast/references/index.ts +8 -0
- package/src/src/ast/references/jackson.ts +16 -0
- package/src/src/ast/references/jakarta.ts +10 -0
- package/src/src/ast/references/java.ts +19 -0
- package/src/src/ast/references/kotlin.ts +40 -0
- package/src/src/ast/references/okhttp3.ts +5 -0
- package/src/src/ast/references/reactor.ts +5 -0
- package/src/src/ast/references/spring.ts +58 -0
- package/src/src/ast/references/swagger.ts +23 -0
- package/src/src/ast/utils/get-kotlin-builder-options.ts +19 -0
- package/src/src/ast/utils/to-kt-node.ts +31 -0
- package/src/src/ast/utils/write-kt-annotations.ts +15 -0
- package/src/src/ast/utils/write-kt-arguments.ts +45 -0
- package/src/src/ast/utils/write-kt-enum-values.ts +27 -0
- package/src/src/ast/utils/write-kt-generic-parameters.ts +12 -0
- package/src/src/ast/utils/write-kt-members.ts +25 -0
- package/src/src/ast/utils/write-kt-node.ts +37 -0
- package/src/src/ast/utils/write-kt-parameters.ts +25 -0
- package/src/src/common-results.ts +4 -0
- package/src/src/config.ts +41 -0
- package/src/src/file-builder.ts +108 -0
- package/src/src/generators/file-generator.ts +29 -0
- package/src/src/generators/index.ts +4 -0
- package/src/src/generators/models/args.ts +128 -0
- package/src/src/generators/models/index.ts +4 -0
- package/src/src/generators/models/model-generator.ts +602 -0
- package/src/src/generators/models/models-generator.ts +65 -0
- package/src/src/generators/models/models.ts +95 -0
- package/src/src/generators/services/okhttp3-clients/args.ts +78 -0
- package/src/src/generators/services/okhttp3-clients/index.ts +4 -0
- package/src/src/generators/services/okhttp3-clients/models.ts +60 -0
- package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +557 -0
- package/src/src/generators/services/okhttp3-clients/okhttp3-clients-generator.ts +128 -0
- package/src/src/generators/services/okhttp3-clients/refs.ts +55 -0
- package/src/src/generators/services/spring-controllers/args.ts +73 -0
- package/src/src/generators/services/spring-controllers/index.ts +4 -0
- package/src/src/generators/services/spring-controllers/models.ts +58 -0
- package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +653 -0
- package/src/src/generators/services/spring-controllers/spring-controllers-generator.ts +70 -0
- package/src/src/import-collection.test.ts +116 -0
- package/src/src/import-collection.ts +98 -0
- package/src/src/types.ts +3 -0
- package/src/src/utils.ts +39 -0
- package/src/tests/openapi-models.test.ts +63 -0
- package/test_runner.js +227 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.8/_types.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC;IACnE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,MAAM,OAAO,GAAG,CACpB,OAAO,EAAE,cAAc,EACvB,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,WAAW,GAAG,iBAAiB,CAAC;AAErC,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,IAAI,EAA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@@
|
|
|
1
|
+
import type { EqualOptions, EqualOptionUtil } from "./_types.js";
|
|
2
|
+
import type { Tester } from "./_types.js";
|
|
3
|
+
export declare function buildEqualOptions(options: EqualOptionUtil): EqualOptions;
|
|
4
|
+
export declare function isPromiseLike(value: unknown): value is PromiseLike<unknown>;
|
|
5
|
+
export declare function hasIterator(object: any): boolean;
|
|
6
|
+
export declare function isA<T>(typeName: string, value: unknown): value is T;
|
|
7
|
+
export declare function iterableEquality(a: any, b: any, customTesters?: Tester[], aStack?: unknown[], bStack?: unknown[]): boolean | undefined;
|
|
8
|
+
export declare function subsetEquality(object: unknown, subset: unknown, customTesters?: Tester[]): boolean | undefined;
|
|
9
|
+
//# sourceMappingURL=_utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.8/_utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,YAAY,CAYxE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAAC,OAAO,CAAC,CAM3E;AAGD,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,WAEtC;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAEnE;AAmDD,wBAAgB,gBAAgB,CAE9B,CAAC,EAAE,GAAG,EAEN,CAAC,EAAE,GAAG,EACN,aAAa,GAAE,MAAM,EAAO,EAC5B,MAAM,GAAE,OAAO,EAAO,EACtB,MAAM,GAAE,OAAO,EAAO,GACrB,OAAO,GAAG,SAAS,CA2IrB;AAGD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,OAAO,EACf,aAAa,GAAE,MAAM,EAAO,GAC3B,OAAO,GAAG,SAAS,CAyCrB"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. MIT license.
|
|
3
|
+
import { equal } from "./_equal.js";
|
|
4
|
+
export function buildEqualOptions(options) {
|
|
5
|
+
const { customMessage, customTesters = [], strictCheck } = options !== null && options !== void 0 ? options : {};
|
|
6
|
+
const ret = {
|
|
7
|
+
customTesters,
|
|
8
|
+
};
|
|
9
|
+
if (customMessage !== undefined) {
|
|
10
|
+
ret.msg = customMessage;
|
|
11
|
+
}
|
|
12
|
+
if (strictCheck !== undefined) {
|
|
13
|
+
ret.strictCheck = strictCheck;
|
|
14
|
+
}
|
|
15
|
+
return ret;
|
|
16
|
+
}
|
|
17
|
+
export function isPromiseLike(value) {
|
|
18
|
+
if (value == null) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return typeof (value.then) === "function";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
// deno-lint-ignore no-explicit-any
|
|
26
|
+
export function hasIterator(object) {
|
|
27
|
+
return !!(object != null && object[Symbol.iterator]);
|
|
28
|
+
}
|
|
29
|
+
export function isA(typeName, value) {
|
|
30
|
+
return Object.prototype.toString.apply(value) === `[object ${typeName}]`;
|
|
31
|
+
}
|
|
32
|
+
function isObject(a) {
|
|
33
|
+
return a !== null && typeof a === "object";
|
|
34
|
+
}
|
|
35
|
+
function isObjectWithKeys(a) {
|
|
36
|
+
return (isObject(a) &&
|
|
37
|
+
!(a instanceof Error) &&
|
|
38
|
+
!Array.isArray(a) &&
|
|
39
|
+
!(a instanceof Date) &&
|
|
40
|
+
!(a instanceof Set) &&
|
|
41
|
+
!(a instanceof Map));
|
|
42
|
+
}
|
|
43
|
+
function getObjectKeys(object) {
|
|
44
|
+
return [
|
|
45
|
+
...Object.keys(object),
|
|
46
|
+
...Object.getOwnPropertySymbols(object).filter((s) => { var _a; return (_a = Object.getOwnPropertyDescriptor(object, s)) === null || _a === void 0 ? void 0 : _a.enumerable; }),
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
function hasPropertyInObject(object, key) {
|
|
50
|
+
const shouldTerminate = !object || typeof object !== "object" ||
|
|
51
|
+
object === Object.prototype;
|
|
52
|
+
if (shouldTerminate) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return (Object.prototype.hasOwnProperty.call(object, key) ||
|
|
56
|
+
hasPropertyInObject(Object.getPrototypeOf(object), key));
|
|
57
|
+
}
|
|
58
|
+
// deno-lint-ignore no-explicit-any
|
|
59
|
+
function entries(obj) {
|
|
60
|
+
if (!isObject(obj))
|
|
61
|
+
return [];
|
|
62
|
+
return Object.getOwnPropertySymbols(obj)
|
|
63
|
+
.filter((key) => key !== Symbol.iterator)
|
|
64
|
+
.map((key) => [key, obj[key]])
|
|
65
|
+
.concat(Object.entries(obj));
|
|
66
|
+
}
|
|
67
|
+
// Ported from https://github.com/jestjs/jest/blob/442c7f692e3a92f14a2fb56c1737b26fc663a0ef/packages/expect-utils/src/utils.ts#L173
|
|
68
|
+
export function iterableEquality(
|
|
69
|
+
// deno-lint-ignore no-explicit-any
|
|
70
|
+
a,
|
|
71
|
+
// deno-lint-ignore no-explicit-any
|
|
72
|
+
b, customTesters = [], aStack = [], bStack = []) {
|
|
73
|
+
if (typeof a !== "object" ||
|
|
74
|
+
typeof b !== "object" ||
|
|
75
|
+
Array.isArray(a) ||
|
|
76
|
+
Array.isArray(b) ||
|
|
77
|
+
!hasIterator(a) ||
|
|
78
|
+
!hasIterator(b)) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
if (a.constructor !== b.constructor) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
let length = aStack.length;
|
|
85
|
+
while (length--) {
|
|
86
|
+
// Linear search. Performance is inversely proportional to the number of
|
|
87
|
+
// unique nested structures.
|
|
88
|
+
// circular references at same depth are equal
|
|
89
|
+
// circular reference is not equal to non-circular one
|
|
90
|
+
if (aStack[length] === a) {
|
|
91
|
+
return bStack[length] === b;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
aStack.push(a);
|
|
95
|
+
bStack.push(b);
|
|
96
|
+
// deno-lint-ignore no-explicit-any
|
|
97
|
+
const iterableEqualityWithStack = (a, b) => iterableEquality(a, b, [...filteredCustomTesters], [...aStack], [...bStack]);
|
|
98
|
+
// Replace any instance of iterableEquality with the new
|
|
99
|
+
// iterableEqualityWithStack so we can do circular detection
|
|
100
|
+
const filteredCustomTesters = [
|
|
101
|
+
...customTesters.filter((t) => t !== iterableEquality),
|
|
102
|
+
iterableEqualityWithStack,
|
|
103
|
+
];
|
|
104
|
+
if (a.size !== undefined) {
|
|
105
|
+
if (a.size !== b.size) {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
else if (isA("Set", a)) {
|
|
109
|
+
let allFound = true;
|
|
110
|
+
for (const aValue of a) {
|
|
111
|
+
if (!b.has(aValue)) {
|
|
112
|
+
let has = false;
|
|
113
|
+
for (const bValue of b) {
|
|
114
|
+
const isEqual = equal(aValue, bValue, {
|
|
115
|
+
customTesters: filteredCustomTesters,
|
|
116
|
+
});
|
|
117
|
+
if (isEqual === true) {
|
|
118
|
+
has = true;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (has === false) {
|
|
122
|
+
allFound = false;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
// Remove the first value from the stack of traversed values.
|
|
128
|
+
aStack.pop();
|
|
129
|
+
bStack.pop();
|
|
130
|
+
return allFound;
|
|
131
|
+
}
|
|
132
|
+
else if (isA("Map", a)) {
|
|
133
|
+
let allFound = true;
|
|
134
|
+
for (const aEntry of a) {
|
|
135
|
+
if (!b.has(aEntry[0]) ||
|
|
136
|
+
!equal(aEntry[1], b.get(aEntry[0]), {
|
|
137
|
+
customTesters: filteredCustomTesters,
|
|
138
|
+
})) {
|
|
139
|
+
let has = false;
|
|
140
|
+
for (const bEntry of b) {
|
|
141
|
+
const matchedKey = equal(aEntry[0], bEntry[0], { customTesters: filteredCustomTesters });
|
|
142
|
+
let matchedValue = false;
|
|
143
|
+
if (matchedKey === true) {
|
|
144
|
+
matchedValue = equal(aEntry[1], bEntry[1], { customTesters: filteredCustomTesters });
|
|
145
|
+
}
|
|
146
|
+
if (matchedValue === true) {
|
|
147
|
+
has = true;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (has === false) {
|
|
151
|
+
allFound = false;
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
// Remove the first value from the stack of traversed values.
|
|
157
|
+
aStack.pop();
|
|
158
|
+
bStack.pop();
|
|
159
|
+
return allFound;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const bIterator = b[Symbol.iterator]();
|
|
163
|
+
for (const aValue of a) {
|
|
164
|
+
const nextB = bIterator.next();
|
|
165
|
+
if (nextB.done ||
|
|
166
|
+
!equal(aValue, nextB.value, { customTesters: filteredCustomTesters })) {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (!bIterator.next().done) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
const aEntries = entries(a);
|
|
174
|
+
const bEntries = entries(b);
|
|
175
|
+
if (!equal(aEntries, bEntries)) {
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
// Remove the first value from the stack of traversed values.
|
|
179
|
+
aStack.pop();
|
|
180
|
+
bStack.pop();
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
// Ported from https://github.com/jestjs/jest/blob/442c7f692e3a92f14a2fb56c1737b26fc663a0ef/packages/expect-utils/src/utils.ts#L341
|
|
184
|
+
export function subsetEquality(object, subset, customTesters = []) {
|
|
185
|
+
const filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality);
|
|
186
|
+
const subsetEqualityWithContext = (seenReferences = new WeakMap()) =>
|
|
187
|
+
// deno-lint-ignore no-explicit-any
|
|
188
|
+
(object, subset) => {
|
|
189
|
+
if (!isObjectWithKeys(subset)) {
|
|
190
|
+
return undefined;
|
|
191
|
+
}
|
|
192
|
+
if (seenReferences.has(subset))
|
|
193
|
+
return undefined;
|
|
194
|
+
seenReferences.set(subset, true);
|
|
195
|
+
const matchResult = getObjectKeys(subset).every((key) => {
|
|
196
|
+
if (isObjectWithKeys(subset[key])) {
|
|
197
|
+
if (seenReferences.has(subset[key])) {
|
|
198
|
+
return equal(object[key], subset[key], {
|
|
199
|
+
customTesters: filteredCustomTesters,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
const result = object != null &&
|
|
204
|
+
hasPropertyInObject(object, key) &&
|
|
205
|
+
equal(object[key], subset[key], {
|
|
206
|
+
customTesters: [
|
|
207
|
+
...filteredCustomTesters,
|
|
208
|
+
subsetEqualityWithContext(seenReferences),
|
|
209
|
+
],
|
|
210
|
+
});
|
|
211
|
+
seenReferences.delete(subset[key]);
|
|
212
|
+
return result;
|
|
213
|
+
});
|
|
214
|
+
seenReferences.delete(subset);
|
|
215
|
+
return matchResult;
|
|
216
|
+
};
|
|
217
|
+
return subsetEqualityWithContext()(object, subset);
|
|
218
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Expected, Matchers } from "./_types.js";
|
|
2
|
+
import * as asymmetricMatchers from "./_asymmetric_matchers.js";
|
|
3
|
+
import type { SnapshotPlugin, Tester } from "./_types.js";
|
|
4
|
+
export type { AnyConstructor, Async, Expected } from "./_types.js";
|
|
5
|
+
/**
|
|
6
|
+
* **Note:** the documentation for this module is taken from [Jest](https://github.com/jestjs/jest/blob/main/website/versioned_docs/version-29.7/ExpectAPI.md)
|
|
7
|
+
* and the examples are updated for Deno.
|
|
8
|
+
*
|
|
9
|
+
* The `expect` function is used to test a value. You will use `expect` along with a
|
|
10
|
+
* "matcher" function to assert something about a value.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts no-assert
|
|
14
|
+
* import { expect } from "@std/expect";
|
|
15
|
+
*
|
|
16
|
+
* function bestLaCroixFlavor(): string {
|
|
17
|
+
* return "grapefruit";
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* Deno.test("the best flavor is grapefruit", () => {
|
|
21
|
+
* expect(bestLaCroixFlavor()).toBe("grapefruit");
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* In this case, `toBe` is the matcher function. There are a lot of different
|
|
26
|
+
* matcher functions, documented in the main module description.
|
|
27
|
+
*
|
|
28
|
+
* The argument to `expect` should be the value that your code produces, and any
|
|
29
|
+
* argument to the matcher should be the correct value. If you mix them up, your
|
|
30
|
+
* tests will still work, but the error messages on failing tests will look
|
|
31
|
+
* strange.
|
|
32
|
+
*
|
|
33
|
+
* @param value The value to perform assertions on.
|
|
34
|
+
* @param customMessage An optional custom message to include in the assertion error.
|
|
35
|
+
* @returns An expected object that can be used to chain matchers.
|
|
36
|
+
*
|
|
37
|
+
* @typeParam T The interface used for `expect`. This is usually needed only if you want to use `expect.extend` to create custom matchers.
|
|
38
|
+
*/
|
|
39
|
+
export declare function expect<T extends Expected = Expected>(value: unknown, customMessage?: string): T;
|
|
40
|
+
export declare namespace expect {
|
|
41
|
+
var addEqualityTesters: (newTesters: Tester[]) => void;
|
|
42
|
+
var extend: (newExtendMatchers: Matchers) => void;
|
|
43
|
+
var anything: () => ReturnType<typeof asymmetricMatchers.anything>;
|
|
44
|
+
var any: (c: unknown) => ReturnType<typeof asymmetricMatchers.any>;
|
|
45
|
+
var arrayContaining: (c: any[]) => ReturnType<typeof asymmetricMatchers.arrayContaining>;
|
|
46
|
+
var closeTo: (num: number, numDigits?: number) => ReturnType<typeof asymmetricMatchers.closeTo>;
|
|
47
|
+
var stringContaining: (str: string) => ReturnType<typeof asymmetricMatchers.stringContaining>;
|
|
48
|
+
var stringMatching: (pattern: string | RegExp) => ReturnType<typeof asymmetricMatchers.stringMatching>;
|
|
49
|
+
var hasAssertions: () => void;
|
|
50
|
+
var assertions: (num: number) => void;
|
|
51
|
+
var objectContaining: (obj: Record<string, unknown>) => ReturnType<typeof asymmetricMatchers.objectContaining>;
|
|
52
|
+
var not: {
|
|
53
|
+
arrayContaining: typeof asymmetricMatchers.arrayNotContaining;
|
|
54
|
+
objectContaining: typeof asymmetricMatchers.objectNotContaining;
|
|
55
|
+
stringContaining: typeof asymmetricMatchers.stringNotContaining;
|
|
56
|
+
stringMatching: typeof asymmetricMatchers.stringNotMatching;
|
|
57
|
+
};
|
|
58
|
+
var addSnapshotSerializer: (plugin: SnapshotPlugin) => void;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=expect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.8/expect.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,QAAQ,EAKR,QAAQ,EACT,MAAM,aAAa,CAAC;AAiDrB,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1D,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA+CnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAClD,KAAK,EAAE,OAAO,EACd,aAAa,CAAC,EAAE,MAAM,GACrB,CAAC,C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