@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,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the style of text to be printed to bold.
|
|
3
|
+
*
|
|
4
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
5
|
+
*
|
|
6
|
+
* @param str Text to make bold
|
|
7
|
+
*
|
|
8
|
+
* @returns Bold text for printing
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts no-assert
|
|
12
|
+
* import { bold } from "@std/internal/styles";
|
|
13
|
+
*
|
|
14
|
+
* console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function bold(str: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the color of text to be printed to red.
|
|
20
|
+
*
|
|
21
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
22
|
+
*
|
|
23
|
+
* @param str Text to make red
|
|
24
|
+
*
|
|
25
|
+
* @returns Red text for printing
|
|
26
|
+
*
|
|
27
|
+
* @example Usage
|
|
28
|
+
* ```ts no-assert
|
|
29
|
+
* import { red } from "@std/internal/styles";
|
|
30
|
+
*
|
|
31
|
+
* console.log(red("Hello, world!")); // Prints "Hello, world!" in red
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function red(str: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the color of text to be printed to green.
|
|
37
|
+
*
|
|
38
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
39
|
+
*
|
|
40
|
+
* @param str Text to make green
|
|
41
|
+
*
|
|
42
|
+
* @returns Green text for print
|
|
43
|
+
*
|
|
44
|
+
* @example Usage
|
|
45
|
+
* ```ts no-assert
|
|
46
|
+
* import { green } from "@std/internal/styles";
|
|
47
|
+
*
|
|
48
|
+
* console.log(green("Hello, world!")); // Prints "Hello, world!" in green
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function green(str: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the color of text to be printed to yellow.
|
|
54
|
+
*
|
|
55
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
56
|
+
*
|
|
57
|
+
* @param str Text to make yellow
|
|
58
|
+
*
|
|
59
|
+
* @returns Yellow text for print
|
|
60
|
+
*
|
|
61
|
+
* @example Usage
|
|
62
|
+
* ```ts no-assert
|
|
63
|
+
* import { yellow } from "@std/internal/styles";
|
|
64
|
+
*
|
|
65
|
+
* console.log(yellow("Hello, world!")); // Prints "Hello, world!" in yellow
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare function yellow(str: string): string;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the color of text to be printed to white.
|
|
71
|
+
*
|
|
72
|
+
* @param str Text to make white
|
|
73
|
+
*
|
|
74
|
+
* @returns White text for print
|
|
75
|
+
*
|
|
76
|
+
* @example Usage
|
|
77
|
+
* ```ts no-assert
|
|
78
|
+
* import { white } from "@std/internal/styles";
|
|
79
|
+
*
|
|
80
|
+
* console.log(white("Hello, world!")); // Prints "Hello, world!" in white
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
export declare function white(str: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the color of text to be printed to gray.
|
|
86
|
+
*
|
|
87
|
+
* @param str Text to make gray
|
|
88
|
+
*
|
|
89
|
+
* @returns Gray text for print
|
|
90
|
+
*
|
|
91
|
+
* @example Usage
|
|
92
|
+
* ```ts no-assert
|
|
93
|
+
* import { gray } from "@std/internal/styles";
|
|
94
|
+
*
|
|
95
|
+
* console.log(gray("Hello, world!")); // Prints "Hello, world!" in gray
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare function gray(str: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* Sets the color of text to be printed to bright-black.
|
|
101
|
+
*
|
|
102
|
+
* @param str Text to make bright-black
|
|
103
|
+
*
|
|
104
|
+
* @returns Bright-black text for print
|
|
105
|
+
*
|
|
106
|
+
* @example Usage
|
|
107
|
+
* ```ts no-assert
|
|
108
|
+
* import { brightBlack } from "@std/internal/styles";
|
|
109
|
+
*
|
|
110
|
+
* console.log(brightBlack("Hello, world!")); // Prints "Hello, world!" in bright-black
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
export declare function brightBlack(str: string): string;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the background color of text to be printed to red.
|
|
116
|
+
*
|
|
117
|
+
* @param str Text to make its background red
|
|
118
|
+
*
|
|
119
|
+
* @returns Red background text for print
|
|
120
|
+
*
|
|
121
|
+
* @example Usage
|
|
122
|
+
* ```ts no-assert
|
|
123
|
+
* import { bgRed } from "@std/internal/styles";
|
|
124
|
+
*
|
|
125
|
+
* console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
export declare function bgRed(str: string): string;
|
|
129
|
+
/**
|
|
130
|
+
* Sets the background color of text to be printed to green.
|
|
131
|
+
*
|
|
132
|
+
* @param str Text to make its background green
|
|
133
|
+
*
|
|
134
|
+
* @returns Green background text for print
|
|
135
|
+
*
|
|
136
|
+
* @example Usage
|
|
137
|
+
* ```ts no-assert
|
|
138
|
+
* import { bgGreen } from "@std/internal/styles";
|
|
139
|
+
*
|
|
140
|
+
* console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
export declare function bgGreen(str: string): string;
|
|
144
|
+
/**
|
|
145
|
+
* Remove ANSI escape codes from the string.
|
|
146
|
+
*
|
|
147
|
+
* @param string Text to remove ANSI escape codes from
|
|
148
|
+
*
|
|
149
|
+
* @returns Text without ANSI escape codes
|
|
150
|
+
*
|
|
151
|
+
* @example Usage
|
|
152
|
+
* ```ts no-assert
|
|
153
|
+
* import { red, stripAnsiCode } from "@std/internal/styles";
|
|
154
|
+
*
|
|
155
|
+
* console.log(stripAnsiCode(red("Hello, world!"))); // Prints "Hello, world!"
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
export declare function stripAnsiCode(string: string): string;
|
|
159
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/styles.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
// A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
|
|
5
|
+
// on npm.
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.bold = bold;
|
|
8
|
+
exports.red = red;
|
|
9
|
+
exports.green = green;
|
|
10
|
+
exports.yellow = yellow;
|
|
11
|
+
exports.white = white;
|
|
12
|
+
exports.gray = gray;
|
|
13
|
+
exports.brightBlack = brightBlack;
|
|
14
|
+
exports.bgRed = bgRed;
|
|
15
|
+
exports.bgGreen = bgGreen;
|
|
16
|
+
exports.stripAnsiCode = stripAnsiCode;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
// This code is vendored from `fmt/colors.ts`.
|
|
19
|
+
// deno-lint-ignore no-explicit-any
|
|
20
|
+
const dntShim = tslib_1.__importStar(require("../../../../../_dnt.test_shims.js"));
|
|
21
|
+
const { Deno } = dntShim.dntGlobalThis;
|
|
22
|
+
const noColor = typeof (Deno === null || Deno === void 0 ? void 0 : Deno.noColor) === "boolean"
|
|
23
|
+
? Deno.noColor
|
|
24
|
+
: false;
|
|
25
|
+
const enabled = !noColor;
|
|
26
|
+
function code(open, close) {
|
|
27
|
+
return {
|
|
28
|
+
open: `\x1b[${open.join(";")}m`,
|
|
29
|
+
close: `\x1b[${close}m`,
|
|
30
|
+
regexp: new RegExp(`\\x1b\\[${close}m`, "g"),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function run(str, code) {
|
|
34
|
+
return enabled
|
|
35
|
+
? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
|
|
36
|
+
: str;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Sets the style of text to be printed to bold.
|
|
40
|
+
*
|
|
41
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
42
|
+
*
|
|
43
|
+
* @param str Text to make bold
|
|
44
|
+
*
|
|
45
|
+
* @returns Bold text for printing
|
|
46
|
+
*
|
|
47
|
+
* @example Usage
|
|
48
|
+
* ```ts no-assert
|
|
49
|
+
* import { bold } from "@std/internal/styles";
|
|
50
|
+
*
|
|
51
|
+
* console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
function bold(str) {
|
|
55
|
+
return run(str, code([1], 22));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Sets the color of text to be printed to red.
|
|
59
|
+
*
|
|
60
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
61
|
+
*
|
|
62
|
+
* @param str Text to make red
|
|
63
|
+
*
|
|
64
|
+
* @returns Red text for printing
|
|
65
|
+
*
|
|
66
|
+
* @example Usage
|
|
67
|
+
* ```ts no-assert
|
|
68
|
+
* import { red } from "@std/internal/styles";
|
|
69
|
+
*
|
|
70
|
+
* console.log(red("Hello, world!")); // Prints "Hello, world!" in red
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
function red(str) {
|
|
74
|
+
return run(str, code([31], 39));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Sets the color of text to be printed to green.
|
|
78
|
+
*
|
|
79
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
80
|
+
*
|
|
81
|
+
* @param str Text to make green
|
|
82
|
+
*
|
|
83
|
+
* @returns Green text for print
|
|
84
|
+
*
|
|
85
|
+
* @example Usage
|
|
86
|
+
* ```ts no-assert
|
|
87
|
+
* import { green } from "@std/internal/styles";
|
|
88
|
+
*
|
|
89
|
+
* console.log(green("Hello, world!")); // Prints "Hello, world!" in green
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
function green(str) {
|
|
93
|
+
return run(str, code([32], 39));
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Sets the color of text to be printed to yellow.
|
|
97
|
+
*
|
|
98
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
99
|
+
*
|
|
100
|
+
* @param str Text to make yellow
|
|
101
|
+
*
|
|
102
|
+
* @returns Yellow text for print
|
|
103
|
+
*
|
|
104
|
+
* @example Usage
|
|
105
|
+
* ```ts no-assert
|
|
106
|
+
* import { yellow } from "@std/internal/styles";
|
|
107
|
+
*
|
|
108
|
+
* console.log(yellow("Hello, world!")); // Prints "Hello, world!" in yellow
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
function yellow(str) {
|
|
112
|
+
return run(str, code([33], 39));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Sets the color of text to be printed to white.
|
|
116
|
+
*
|
|
117
|
+
* @param str Text to make white
|
|
118
|
+
*
|
|
119
|
+
* @returns White text for print
|
|
120
|
+
*
|
|
121
|
+
* @example Usage
|
|
122
|
+
* ```ts no-assert
|
|
123
|
+
* import { white } from "@std/internal/styles";
|
|
124
|
+
*
|
|
125
|
+
* console.log(white("Hello, world!")); // Prints "Hello, world!" in white
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
function white(str) {
|
|
129
|
+
return run(str, code([37], 39));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Sets the color of text to be printed to gray.
|
|
133
|
+
*
|
|
134
|
+
* @param str Text to make gray
|
|
135
|
+
*
|
|
136
|
+
* @returns Gray text for print
|
|
137
|
+
*
|
|
138
|
+
* @example Usage
|
|
139
|
+
* ```ts no-assert
|
|
140
|
+
* import { gray } from "@std/internal/styles";
|
|
141
|
+
*
|
|
142
|
+
* console.log(gray("Hello, world!")); // Prints "Hello, world!" in gray
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
function gray(str) {
|
|
146
|
+
return brightBlack(str);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Sets the color of text to be printed to bright-black.
|
|
150
|
+
*
|
|
151
|
+
* @param str Text to make bright-black
|
|
152
|
+
*
|
|
153
|
+
* @returns Bright-black text for print
|
|
154
|
+
*
|
|
155
|
+
* @example Usage
|
|
156
|
+
* ```ts no-assert
|
|
157
|
+
* import { brightBlack } from "@std/internal/styles";
|
|
158
|
+
*
|
|
159
|
+
* console.log(brightBlack("Hello, world!")); // Prints "Hello, world!" in bright-black
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
function brightBlack(str) {
|
|
163
|
+
return run(str, code([90], 39));
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Sets the background color of text to be printed to red.
|
|
167
|
+
*
|
|
168
|
+
* @param str Text to make its background red
|
|
169
|
+
*
|
|
170
|
+
* @returns Red background text for print
|
|
171
|
+
*
|
|
172
|
+
* @example Usage
|
|
173
|
+
* ```ts no-assert
|
|
174
|
+
* import { bgRed } from "@std/internal/styles";
|
|
175
|
+
*
|
|
176
|
+
* console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
function bgRed(str) {
|
|
180
|
+
return run(str, code([41], 49));
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Sets the background color of text to be printed to green.
|
|
184
|
+
*
|
|
185
|
+
* @param str Text to make its background green
|
|
186
|
+
*
|
|
187
|
+
* @returns Green background text for print
|
|
188
|
+
*
|
|
189
|
+
* @example Usage
|
|
190
|
+
* ```ts no-assert
|
|
191
|
+
* import { bgGreen } from "@std/internal/styles";
|
|
192
|
+
*
|
|
193
|
+
* console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
function bgGreen(str) {
|
|
197
|
+
return run(str, code([42], 49));
|
|
198
|
+
}
|
|
199
|
+
// https://github.com/chalk/ansi-regex/blob/02fa893d619d3da85411acc8fd4e2eea0e95a9d9/index.js
|
|
200
|
+
const ANSI_PATTERN = new RegExp([
|
|
201
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
202
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))",
|
|
203
|
+
].join("|"), "g");
|
|
204
|
+
/**
|
|
205
|
+
* Remove ANSI escape codes from the string.
|
|
206
|
+
*
|
|
207
|
+
* @param string Text to remove ANSI escape codes from
|
|
208
|
+
*
|
|
209
|
+
* @returns Text without ANSI escape codes
|
|
210
|
+
*
|
|
211
|
+
* @example Usage
|
|
212
|
+
* ```ts no-assert
|
|
213
|
+
* import { red, stripAnsiCode } from "@std/internal/styles";
|
|
214
|
+
*
|
|
215
|
+
* console.log(stripAnsiCode(red("Hello, world!"))); // Prints "Hello, world!"
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
function stripAnsiCode(string) {
|
|
219
|
+
return string.replace(ANSI_PATTERN, "");
|
|
220
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Ways that lines in a diff can be different. */
|
|
2
|
+
export type DiffType = "removed" | "common" | "added";
|
|
3
|
+
/**
|
|
4
|
+
* Represents the result of a diff operation.
|
|
5
|
+
*
|
|
6
|
+
* @typeParam T The type of the value in the diff result.
|
|
7
|
+
*/
|
|
8
|
+
export interface DiffResult<T> {
|
|
9
|
+
/** The type of the diff. */
|
|
10
|
+
type: DiffType;
|
|
11
|
+
/** The value of the diff. */
|
|
12
|
+
value: T;
|
|
13
|
+
/** The details of the diff. */
|
|
14
|
+
details?: DiffResult<T>[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/types.ts"],"names":[],"mappings":"AAEA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Spy } from "./mock.js";
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a function is a spy.
|
|
4
|
+
*
|
|
5
|
+
* @typeParam Self The self type of the function.
|
|
6
|
+
* @typeParam Args The arguments type of the function.
|
|
7
|
+
* @typeParam Return The return type of the function.
|
|
8
|
+
* @param func The function to check
|
|
9
|
+
* @return `true` if the function is a spy, `false` otherwise.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isSpy<Self, Args extends unknown[], Return>(func: ((this: Self, ...args: Args) => Return) | unknown): func is Spy<Self, Args, Return>;
|
|
12
|
+
export declare const sessions: Set<Spy<any, any[], any>>[];
|
|
13
|
+
export declare function registerMock(spy: Spy<any, any[], any>): void;
|
|
14
|
+
export declare function unregisterMock(spy: Spy<any, any[], any>): void;
|
|
15
|
+
//# sourceMappingURL=_mock_utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_mock_utils.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/testing/1.0.5/_mock_utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,SAAS,OAAO,EAAE,EAAE,MAAM,EACxD,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC,GAAG,OAAO,GACtD,IAAI,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAOjC;AAGD,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC,EAAO,CAAC;AASxD,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,QAGrD;AAGD,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,QAGvD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sessions = void 0;
|
|
4
|
+
exports.isSpy = isSpy;
|
|
5
|
+
exports.registerMock = registerMock;
|
|
6
|
+
exports.unregisterMock = unregisterMock;
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a function is a spy.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam Self The self type of the function.
|
|
11
|
+
* @typeParam Args The arguments type of the function.
|
|
12
|
+
* @typeParam Return The return type of the function.
|
|
13
|
+
* @param func The function to check
|
|
14
|
+
* @return `true` if the function is a spy, `false` otherwise.
|
|
15
|
+
*/
|
|
16
|
+
function isSpy(func) {
|
|
17
|
+
const spy = func;
|
|
18
|
+
return typeof spy === "function" &&
|
|
19
|
+
typeof spy.original === "function" &&
|
|
20
|
+
typeof spy.restored === "boolean" &&
|
|
21
|
+
typeof spy.restore === "function" &&
|
|
22
|
+
Array.isArray(spy.calls);
|
|
23
|
+
}
|
|
24
|
+
// deno-lint-ignore no-explicit-any
|
|
25
|
+
exports.sessions = [];
|
|
26
|
+
// deno-lint-ignore no-explicit-any
|
|
27
|
+
function getSession() {
|
|
28
|
+
if (exports.sessions.length === 0)
|
|
29
|
+
exports.sessions.push(new Set());
|
|
30
|
+
return exports.sessions.at(-1);
|
|
31
|
+
}
|
|
32
|
+
// deno-lint-ignore no-explicit-any
|
|
33
|
+
function registerMock(spy) {
|
|
34
|
+
const session = getSession();
|
|
35
|
+
session.add(spy);
|
|
36
|
+
}
|
|
37
|
+
// deno-lint-ignore no-explicit-any
|
|
38
|
+
function unregisterMock(spy) {
|
|
39
|
+
const session = getSession();
|
|
40
|
+
session.delete(spy);
|
|
41
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as dntShim from "../../../../../_dnt.test_shims.js";
|
|
2
|
+
/** The options for creating a test suite with the describe function. */
|
|
3
|
+
export interface DescribeDefinition<T> extends Omit<dntShim.Deno.TestDefinition, "fn"> {
|
|
4
|
+
/** The body of the test suite */
|
|
5
|
+
fn?: () => void | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* The `describe` function returns a `TestSuite` representing the group of tests.
|
|
8
|
+
* If `describe` is called within another `describe` calls `fn`, the suite will default to that parent `describe` calls returned `TestSuite`.
|
|
9
|
+
* If `describe` is not called within another `describe` calls `fn`, the suite will default to the `TestSuite` representing the global group of tests.
|
|
10
|
+
*/
|
|
11
|
+
suite?: TestSuite<T>;
|
|
12
|
+
/** Run some shared setup before all of the tests in the suite. */
|
|
13
|
+
beforeAll?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
|
|
14
|
+
/** Run some shared teardown after all of the tests in the suite. */
|
|
15
|
+
afterAll?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
|
|
16
|
+
/** Run some shared setup before each test in the suite. */
|
|
17
|
+
beforeEach?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
|
|
18
|
+
/** Run some shared teardown after each test in the suite. */
|
|
19
|
+
afterEach?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
|
|
20
|
+
}
|
|
21
|
+
/** The options for creating an individual test case with the it function. */
|
|
22
|
+
export interface ItDefinition<T> extends Omit<dntShim.Deno.TestDefinition, "fn"> {
|
|
23
|
+
/** The body of the test case */
|
|
24
|
+
fn: (this: T, t: dntShim.Deno.TestContext) => void | Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* The `describe` function returns a `TestSuite` representing the group of tests.
|
|
27
|
+
* If `it` is called within a `describe` calls `fn`, the suite will default to that parent `describe` calls returned `TestSuite`.
|
|
28
|
+
* If `it` is not called within a `describe` calls `fn`, the suite will default to the `TestSuite` representing the global group of tests.
|
|
29
|
+
*/
|
|
30
|
+
suite?: TestSuite<T>;
|
|
31
|
+
}
|
|
32
|
+
/** The names of all the different types of hooks. */
|
|
33
|
+
export type HookNames = "beforeAll" | "afterAll" | "beforeEach" | "afterEach";
|
|
34
|
+
/**
|
|
35
|
+
* A group of tests.
|
|
36
|
+
*/
|
|
37
|
+
export interface TestSuite<T> {
|
|
38
|
+
/** The symbol to use for grouping the test suite */
|
|
39
|
+
symbol: symbol;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* An internal representation of a group of tests.
|
|
43
|
+
*/
|
|
44
|
+
export declare class TestSuiteInternal<T> implements TestSuite<T> {
|
|
45
|
+
symbol: symbol;
|
|
46
|
+
protected describe: DescribeDefinition<T>;
|
|
47
|
+
protected steps: (TestSuiteInternal<T> | ItDefinition<T>)[];
|
|
48
|
+
protected hasOnlyStep: boolean;
|
|
49
|
+
constructor(describe: DescribeDefinition<T>);
|
|
50
|
+
/** Stores how many test suites are executing. */
|
|
51
|
+
static runningCount: number;
|
|
52
|
+
/** If a test has been registered yet. Block adding global hooks if a test has been registered. */
|
|
53
|
+
static started: boolean;
|
|
54
|
+
/** A map of all test suites by symbol. */
|
|
55
|
+
static suites: Map<symbol, TestSuiteInternal<any>>;
|
|
56
|
+
/** The current test suite being registered. */
|
|
57
|
+
static current: TestSuiteInternal<any> | null;
|
|
58
|
+
/** The stack of tests that are actively running. */
|
|
59
|
+
static active: symbol[];
|
|
60
|
+
/** This is used internally for testing this module. */
|
|
61
|
+
static reset(): void;
|
|
62
|
+
/** This is used internally to register tests. */
|
|
63
|
+
static registerTest(options: dntShim.Deno.TestDefinition): void;
|
|
64
|
+
/** Updates all steps within top level suite to have ignore set to true if only is not set to true on step. */
|
|
65
|
+
static addingOnlyStep<T>(suite: TestSuiteInternal<T>): void;
|
|
66
|
+
/** This is used internally to add steps to a test suite. */
|
|
67
|
+
static addStep<T>(suite: TestSuiteInternal<T>, step: TestSuiteInternal<T> | ItDefinition<T>): void;
|
|
68
|
+
/** This is used internally to add hooks to a test suite. */
|
|
69
|
+
static setHook<T>(suite: TestSuiteInternal<T>, name: HookNames, fn: (this: T) => void | Promise<void>): void;
|
|
70
|
+
/** This is used internally to run all steps for a test suite. */
|
|
71
|
+
static run<T>(suite: TestSuiteInternal<T>, context: T, t: dntShim.Deno.TestContext): Promise<void>;
|
|
72
|
+
static runTest<T>(t: dntShim.Deno.TestContext, fn: (this: T, t: dntShim.Deno.TestContext) => void | Promise<void>, context: T, activeIndex?: number): Promise<void>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=_test_suite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_test_suite.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/testing/1.0.5/_test_suite.ts"],"names":[],"mappings":"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"}
|