@goast/kotlin 0.4.0 → 0.4.2-beta1
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 -249
- package/esm/src/assets.js +1 -1
- package/esm/src/ast/references/okhttp3.js +1 -1
- package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
- package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +29 -27
- 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 +0 -13
- package/package.json +2 -2
- package/script/src/assets.js +1 -1
- package/script/src/ast/references/okhttp3.js +1 -1
- package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
- package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +29 -27
- 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 +0 -13
- package/esm/_dnt.test_polyfills.d.ts +0 -18
- package/esm/_dnt.test_polyfills.d.ts.map +0 -1
- package/esm/_dnt.test_polyfills.js +0 -17
- package/esm/_dnt.test_shims.d.ts +0 -6
- package/esm/_dnt.test_shims.d.ts.map +0 -1
- package/esm/_dnt.test_shims.js +0 -61
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -136
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -54
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -159
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts +0 -42
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -26
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -124
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -191
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -12
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -564
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -159
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -425
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -101
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -111
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -277
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -180
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -207
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.js +0 -2
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -340
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -576
- package/esm/deps/jsr.io/@std/testing/1.0.3/mock.d.ts +0 -674
- package/esm/deps/jsr.io/@std/testing/1.0.3/mock.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/mock.js +0 -1117
- package/esm/src/ast/nodes/annotation.test.d.ts +0 -2
- package/esm/src/ast/nodes/annotation.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/annotation.test.js +0 -56
- package/esm/src/ast/nodes/argument.test.d.ts +0 -2
- package/esm/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/argument.test.js +0 -33
- package/esm/src/ast/nodes/call.test.d.ts +0 -2
- package/esm/src/ast/nodes/call.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/call.test.js +0 -35
- package/esm/src/ast/nodes/class.test.d.ts +0 -2
- package/esm/src/ast/nodes/class.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/class.test.js +0 -219
- package/esm/src/ast/nodes/constructor.test.d.ts +0 -2
- package/esm/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/constructor.test.js +0 -139
- package/esm/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc-tag.test.js +0 -67
- package/esm/src/ast/nodes/doc.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc.test.js +0 -33
- package/esm/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum-value.test.js +0 -115
- package/esm/src/ast/nodes/enum.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum.test.js +0 -129
- package/esm/src/ast/nodes/function.test.d.ts +0 -2
- package/esm/src/ast/nodes/function.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/function.test.js +0 -160
- package/esm/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/generic-parameter.test.js +0 -49
- package/esm/src/ast/nodes/init-block.test.d.ts +0 -2
- package/esm/src/ast/nodes/init-block.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/init-block.test.js +0 -28
- package/esm/src/ast/nodes/interface.test.d.ts +0 -2
- package/esm/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/interface.test.js +0 -121
- package/esm/src/ast/nodes/object.test.d.ts +0 -2
- package/esm/src/ast/nodes/object.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/object.test.js +0 -78
- package/esm/src/ast/nodes/parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/parameter.test.js +0 -152
- package/esm/src/ast/nodes/property.test.d.ts +0 -2
- package/esm/src/ast/nodes/property.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/property.test.js +0 -206
- package/esm/src/ast/nodes/reference.test.d.ts +0 -2
- package/esm/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/reference.test.js +0 -36
- package/esm/src/ast/nodes/string.test.d.ts +0 -2
- package/esm/src/ast/nodes/string.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/string.test.js +0 -48
- package/esm/src/import-collection.test.d.ts +0 -2
- package/esm/src/import-collection.test.d.ts.map +0 -1
- package/esm/src/import-collection.test.js +0 -99
- package/esm/tests/openapi-models.test.d.ts +0 -2
- package/esm/tests/openapi-models.test.d.ts.map +0 -1
- package/esm/tests/openapi-models.test.js +0 -45
- package/script/_dnt.test_polyfills.d.ts +0 -18
- package/script/_dnt.test_polyfills.d.ts.map +0 -1
- package/script/_dnt.test_polyfills.js +0 -18
- package/script/_dnt.test_shims.d.ts +0 -6
- package/script/_dnt.test_shims.d.ts.map +0 -1
- package/script/_dnt.test_shims.js +0 -65
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -139
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -48
- package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -57
- package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -162
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts +0 -42
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -32
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -13
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -140
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -33
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -194
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -598
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -166
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -429
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -106
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -116
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -284
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -186
- package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/format.js +0 -41
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -220
- package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/types.js +0 -3
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -345
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -587
- package/script/deps/jsr.io/@std/testing/1.0.3/mock.d.ts +0 -674
- package/script/deps/jsr.io/@std/testing/1.0.3/mock.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/mock.js +0 -1136
- package/script/src/ast/nodes/annotation.test.d.ts +0 -2
- package/script/src/ast/nodes/annotation.test.d.ts.map +0 -1
- package/script/src/ast/nodes/annotation.test.js +0 -58
- package/script/src/ast/nodes/argument.test.d.ts +0 -2
- package/script/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/script/src/ast/nodes/argument.test.js +0 -35
- package/script/src/ast/nodes/call.test.d.ts +0 -2
- package/script/src/ast/nodes/call.test.d.ts.map +0 -1
- package/script/src/ast/nodes/call.test.js +0 -37
- package/script/src/ast/nodes/class.test.d.ts +0 -2
- package/script/src/ast/nodes/class.test.d.ts.map +0 -1
- package/script/src/ast/nodes/class.test.js +0 -221
- package/script/src/ast/nodes/constructor.test.d.ts +0 -2
- package/script/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/script/src/ast/nodes/constructor.test.js +0 -141
- package/script/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/script/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc-tag.test.js +0 -69
- package/script/src/ast/nodes/doc.test.d.ts +0 -2
- package/script/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc.test.js +0 -35
- package/script/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/script/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum-value.test.js +0 -117
- package/script/src/ast/nodes/enum.test.d.ts +0 -2
- package/script/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum.test.js +0 -131
- package/script/src/ast/nodes/function.test.d.ts +0 -2
- package/script/src/ast/nodes/function.test.d.ts.map +0 -1
- package/script/src/ast/nodes/function.test.js +0 -162
- package/script/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/generic-parameter.test.js +0 -51
- package/script/src/ast/nodes/init-block.test.d.ts +0 -2
- package/script/src/ast/nodes/init-block.test.d.ts.map +0 -1
- package/script/src/ast/nodes/init-block.test.js +0 -30
- package/script/src/ast/nodes/interface.test.d.ts +0 -2
- package/script/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/script/src/ast/nodes/interface.test.js +0 -123
- package/script/src/ast/nodes/object.test.d.ts +0 -2
- package/script/src/ast/nodes/object.test.d.ts.map +0 -1
- package/script/src/ast/nodes/object.test.js +0 -80
- package/script/src/ast/nodes/parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/parameter.test.js +0 -154
- package/script/src/ast/nodes/property.test.d.ts +0 -2
- package/script/src/ast/nodes/property.test.d.ts.map +0 -1
- package/script/src/ast/nodes/property.test.js +0 -208
- package/script/src/ast/nodes/reference.test.d.ts +0 -2
- package/script/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/script/src/ast/nodes/reference.test.js +0 -38
- package/script/src/ast/nodes/string.test.d.ts +0 -2
- package/script/src/ast/nodes/string.test.d.ts.map +0 -1
- package/script/src/ast/nodes/string.test.js +0 -50
- package/script/src/import-collection.test.d.ts +0 -2
- package/script/src/import-collection.test.d.ts.map +0 -1
- package/script/src/import-collection.test.js +0 -101
- package/script/tests/openapi-models.test.d.ts +0 -2
- package/script/tests/openapi-models.test.d.ts.map +0 -1
- package/script/tests/openapi-models.test.js +0 -48
- package/src/_dnt.test_polyfills.ts +0 -43
- package/src/_dnt.test_shims.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +0 -152
- package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +0 -52
- package/src/deps/jsr.io/@std/assert/1.0.6/false.ts +0 -26
- package/src/deps/jsr.io/@std/assert/1.0.6/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.6/is_error.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.6/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.6/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.6/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +0 -202
- package/src/deps/jsr.io/@std/assert/1.0.6/rejects.ts +0 -123
- package/src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts +0 -67
- package/src/deps/jsr.io/@std/expect/1.0.5/_assert_equals.ts +0 -38
- package/src/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.ts +0 -35
- package/src/deps/jsr.io/@std/expect/1.0.5/_assertion.ts +0 -13
- package/src/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.ts +0 -147
- package/src/deps/jsr.io/@std/expect/1.0.5/_build_message.ts +0 -51
- package/src/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.ts +0 -19
- package/src/deps/jsr.io/@std/expect/1.0.5/_equal.ts +0 -229
- package/src/deps/jsr.io/@std/expect/1.0.5/_extend.ts +0 -16
- package/src/deps/jsr.io/@std/expect/1.0.5/_inspect_args.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.5/_matchers.ts +0 -828
- package/src/deps/jsr.io/@std/expect/1.0.5/_mock_util.ts +0 -22
- package/src/deps/jsr.io/@std/expect/1.0.5/_types.ts +0 -917
- package/src/deps/jsr.io/@std/expect/1.0.5/_utils.ts +0 -201
- package/src/deps/jsr.io/@std/expect/1.0.5/expect.ts +0 -511
- package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
- package/src/deps/jsr.io/@std/internal/1.0.4/build_message.ts +0 -134
- package/src/deps/jsr.io/@std/internal/1.0.4/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.4/diff_str.ts +0 -204
- package/src/deps/jsr.io/@std/internal/1.0.4/format.ts +0 -39
- package/src/deps/jsr.io/@std/internal/1.0.4/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.4/types.ts +0 -18
- package/src/deps/jsr.io/@std/testing/1.0.3/_test_suite.ts +0 -389
- package/src/deps/jsr.io/@std/testing/1.0.3/bdd.ts +0 -1202
- package/src/deps/jsr.io/@std/testing/1.0.3/mock.ts +0 -1839
- package/src/mod.ts +0 -8
- package/src/src/assets.ts +0 -9
- package/src/src/ast/_index.ts +0 -66
- package/src/src/ast/common.ts +0 -1
- package/src/src/ast/index.ts +0 -1
- package/src/src/ast/node.ts +0 -10
- package/src/src/ast/nodes/annotation.test.ts +0 -69
- package/src/src/ast/nodes/annotation.ts +0 -79
- package/src/src/ast/nodes/argument.test.ts +0 -41
- package/src/src/ast/nodes/argument.ts +0 -62
- package/src/src/ast/nodes/call.test.ts +0 -44
- package/src/src/ast/nodes/call.ts +0 -66
- package/src/src/ast/nodes/class.test.ts +0 -274
- package/src/src/ast/nodes/class.ts +0 -178
- package/src/src/ast/nodes/collection-literal.ts +0 -49
- package/src/src/ast/nodes/constructor.test.ts +0 -178
- package/src/src/ast/nodes/constructor.ts +0 -126
- package/src/src/ast/nodes/doc-tag.test.ts +0 -84
- package/src/src/ast/nodes/doc-tag.ts +0 -138
- package/src/src/ast/nodes/doc.test.ts +0 -42
- package/src/src/ast/nodes/doc.ts +0 -111
- package/src/src/ast/nodes/enum-value.test.ts +0 -146
- package/src/src/ast/nodes/enum-value.ts +0 -100
- package/src/src/ast/nodes/enum.test.ts +0 -167
- package/src/src/ast/nodes/enum.ts +0 -163
- package/src/src/ast/nodes/function.test.ts +0 -194
- package/src/src/ast/nodes/function.ts +0 -176
- package/src/src/ast/nodes/generic-parameter.test.ts +0 -60
- package/src/src/ast/nodes/generic-parameter.ts +0 -54
- package/src/src/ast/nodes/init-block.test.ts +0 -36
- package/src/src/ast/nodes/init-block.ts +0 -38
- package/src/src/ast/nodes/interface.test.ts +0 -151
- package/src/src/ast/nodes/interface.ts +0 -133
- package/src/src/ast/nodes/lambda-type.ts +0 -68
- package/src/src/ast/nodes/lambda.ts +0 -68
- package/src/src/ast/nodes/object.test.ts +0 -101
- package/src/src/ast/nodes/object.ts +0 -102
- package/src/src/ast/nodes/parameter.test.ts +0 -191
- package/src/src/ast/nodes/parameter.ts +0 -118
- package/src/src/ast/nodes/property.test.ts +0 -253
- package/src/src/ast/nodes/property.ts +0 -225
- package/src/src/ast/nodes/reference.test.ts +0 -47
- package/src/src/ast/nodes/reference.ts +0 -178
- package/src/src/ast/nodes/string.test.ts +0 -61
- package/src/src/ast/nodes/string.ts +0 -114
- package/src/src/ast/nodes/types.ts +0 -23
- package/src/src/ast/references/index.ts +0 -8
- package/src/src/ast/references/jackson.ts +0 -16
- package/src/src/ast/references/jakarta.ts +0 -10
- package/src/src/ast/references/java.ts +0 -19
- package/src/src/ast/references/kotlin.ts +0 -40
- package/src/src/ast/references/okhttp3.ts +0 -5
- package/src/src/ast/references/reactor.ts +0 -5
- package/src/src/ast/references/spring.ts +0 -58
- package/src/src/ast/references/swagger.ts +0 -19
- package/src/src/ast/utils/get-kotlin-builder-options.ts +0 -19
- package/src/src/ast/utils/to-kt-node.ts +0 -31
- package/src/src/ast/utils/write-kt-annotations.ts +0 -15
- package/src/src/ast/utils/write-kt-arguments.ts +0 -45
- package/src/src/ast/utils/write-kt-enum-values.ts +0 -27
- package/src/src/ast/utils/write-kt-generic-parameters.ts +0 -12
- package/src/src/ast/utils/write-kt-members.ts +0 -25
- package/src/src/ast/utils/write-kt-node.ts +0 -37
- package/src/src/ast/utils/write-kt-parameters.ts +0 -25
- package/src/src/common-results.ts +0 -4
- package/src/src/config.ts +0 -39
- package/src/src/file-builder.ts +0 -108
- package/src/src/generators/file-generator.ts +0 -29
- package/src/src/generators/index.ts +0 -4
- package/src/src/generators/models/args.ts +0 -128
- package/src/src/generators/models/index.ts +0 -4
- package/src/src/generators/models/model-generator.ts +0 -602
- package/src/src/generators/models/models-generator.ts +0 -65
- package/src/src/generators/models/models.ts +0 -95
- package/src/src/generators/services/okhttp3-clients/args.ts +0 -78
- package/src/src/generators/services/okhttp3-clients/index.ts +0 -4
- package/src/src/generators/services/okhttp3-clients/models.ts +0 -60
- package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +0 -555
- package/src/src/generators/services/okhttp3-clients/okhttp3-clients-generator.ts +0 -128
- package/src/src/generators/services/okhttp3-clients/refs.ts +0 -55
- package/src/src/generators/services/spring-controllers/args.ts +0 -71
- package/src/src/generators/services/spring-controllers/index.ts +0 -4
- package/src/src/generators/services/spring-controllers/models.ts +0 -58
- package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +0 -630
- package/src/src/generators/services/spring-controllers/spring-controllers-generator.ts +0 -70
- package/src/src/import-collection.test.ts +0 -116
- package/src/src/import-collection.ts +0 -98
- package/src/src/types.ts +0 -3
- package/src/src/utils.ts +0 -39
- package/src/tests/openapi-models.test.ts +0 -63
- package/test_runner.js +0 -227
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bdd.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/testing/1.0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AAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAElD,4EAA4E;IAC5E,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EACxB,GAAG,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GACvB,SAAS,CAAC,CAAC,CAAC,CAUd;yBAZe,QAAQ;eAsCc,CAAC,WAC5B,YAAY,CAAC,CAAC,CAAC,KACvB,SAAS,CAAC,CAAC,CAAC;iBA+B2B,CAAC,WAChC,YAAY,CAAC,CAAC,CAAC,KACvB,SAAS,CAAC,CAAC,CAAC;eA+BuB,CAAC,WAC5B,YAAY,CAAC,CAAC,CAAC,KACvB,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -1,587 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.it = it;
|
|
5
|
-
exports.test = test;
|
|
6
|
-
exports.beforeAll = beforeAll;
|
|
7
|
-
exports.before = before;
|
|
8
|
-
exports.afterAll = afterAll;
|
|
9
|
-
exports.after = after;
|
|
10
|
-
exports.beforeEach = beforeEach;
|
|
11
|
-
exports.afterEach = afterEach;
|
|
12
|
-
exports.describe = describe;
|
|
13
|
-
const assertion_state_js_1 = require("../../internal/1.0.4/assertion_state.js");
|
|
14
|
-
const assertion_error_js_1 = require("../../assert/1.0.6/assertion_error.js");
|
|
15
|
-
const _test_suite_js_1 = require("./_test_suite.js");
|
|
16
|
-
/** Generates an ItDefinition from ItArgs. */
|
|
17
|
-
function itDefinition(...args) {
|
|
18
|
-
var _a;
|
|
19
|
-
let [suiteOptionsOrNameOrFn, optionsOrNameOrFn, optionsOrFn, fn,] = args;
|
|
20
|
-
let suite = undefined;
|
|
21
|
-
let name;
|
|
22
|
-
let options;
|
|
23
|
-
if (typeof suiteOptionsOrNameOrFn === "object" &&
|
|
24
|
-
typeof suiteOptionsOrNameOrFn.symbol === "symbol") {
|
|
25
|
-
suite = suiteOptionsOrNameOrFn;
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
fn = optionsOrFn;
|
|
29
|
-
optionsOrFn = optionsOrNameOrFn;
|
|
30
|
-
optionsOrNameOrFn = suiteOptionsOrNameOrFn;
|
|
31
|
-
}
|
|
32
|
-
if (typeof optionsOrNameOrFn === "string") {
|
|
33
|
-
name = optionsOrNameOrFn;
|
|
34
|
-
if (typeof optionsOrFn === "function") {
|
|
35
|
-
fn = optionsOrFn;
|
|
36
|
-
options = {};
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
options = optionsOrFn;
|
|
40
|
-
if (!fn)
|
|
41
|
-
fn = options.fn;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else if (typeof optionsOrNameOrFn === "function") {
|
|
45
|
-
fn = optionsOrNameOrFn;
|
|
46
|
-
name = fn.name;
|
|
47
|
-
options = {};
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
options = optionsOrNameOrFn;
|
|
51
|
-
if (typeof optionsOrFn === "function") {
|
|
52
|
-
fn = optionsOrFn;
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
fn = options.fn;
|
|
56
|
-
}
|
|
57
|
-
name = (_a = options.name) !== null && _a !== void 0 ? _a : fn.name;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
...(suite !== undefined ? { suite } : {}),
|
|
61
|
-
...options,
|
|
62
|
-
name,
|
|
63
|
-
fn,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Registers an individual test case.
|
|
68
|
-
*
|
|
69
|
-
* @example Usage
|
|
70
|
-
* ```ts
|
|
71
|
-
* import { describe, it } from "@std/testing/bdd";
|
|
72
|
-
* import { assertEquals } from "@std/assert";
|
|
73
|
-
*
|
|
74
|
-
* describe("example", () => {
|
|
75
|
-
* it("should pass", () => {
|
|
76
|
-
* // test case
|
|
77
|
-
* assertEquals(2 + 2, 4);
|
|
78
|
-
* });
|
|
79
|
-
* });
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @typeParam T The self type of the function to implement the test case
|
|
83
|
-
* @param args The test case
|
|
84
|
-
*/
|
|
85
|
-
function it(...args) {
|
|
86
|
-
if (_test_suite_js_1.TestSuiteInternal.runningCount > 0) {
|
|
87
|
-
throw new Error("Cannot register new test cases after already registered test cases start running");
|
|
88
|
-
}
|
|
89
|
-
const assertionState = (0, assertion_state_js_1.getAssertionState)();
|
|
90
|
-
const options = itDefinition(...args);
|
|
91
|
-
const { suite } = options;
|
|
92
|
-
const testSuite = suite
|
|
93
|
-
? _test_suite_js_1.TestSuiteInternal.suites.get(suite.symbol)
|
|
94
|
-
: _test_suite_js_1.TestSuiteInternal.current;
|
|
95
|
-
if (!_test_suite_js_1.TestSuiteInternal.started)
|
|
96
|
-
_test_suite_js_1.TestSuiteInternal.started = true;
|
|
97
|
-
if (testSuite) {
|
|
98
|
-
_test_suite_js_1.TestSuiteInternal.addStep(testSuite, options);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
const { name, fn, ignore, only, permissions, sanitizeExit, sanitizeOps, sanitizeResources, } = options;
|
|
102
|
-
const opts = {
|
|
103
|
-
name,
|
|
104
|
-
async fn(t) {
|
|
105
|
-
_test_suite_js_1.TestSuiteInternal.runningCount++;
|
|
106
|
-
try {
|
|
107
|
-
await fn.call({}, t);
|
|
108
|
-
}
|
|
109
|
-
finally {
|
|
110
|
-
_test_suite_js_1.TestSuiteInternal.runningCount--;
|
|
111
|
-
}
|
|
112
|
-
if (assertionState.checkAssertionErrorStateAndReset()) {
|
|
113
|
-
throw new assertion_error_js_1.AssertionError("Expected at least one assertion to be called but received none");
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
if (ignore !== undefined) {
|
|
118
|
-
opts.ignore = ignore;
|
|
119
|
-
}
|
|
120
|
-
if (only !== undefined) {
|
|
121
|
-
opts.only = only;
|
|
122
|
-
}
|
|
123
|
-
if (permissions !== undefined) {
|
|
124
|
-
opts.permissions = permissions;
|
|
125
|
-
}
|
|
126
|
-
if (sanitizeExit !== undefined) {
|
|
127
|
-
opts.sanitizeExit = sanitizeExit;
|
|
128
|
-
}
|
|
129
|
-
if (sanitizeOps !== undefined) {
|
|
130
|
-
opts.sanitizeOps = sanitizeOps;
|
|
131
|
-
}
|
|
132
|
-
if (sanitizeResources !== undefined) {
|
|
133
|
-
opts.sanitizeResources = sanitizeResources;
|
|
134
|
-
}
|
|
135
|
-
_test_suite_js_1.TestSuiteInternal.registerTest(opts);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Only execute this test case.
|
|
140
|
-
*
|
|
141
|
-
* @example Usage
|
|
142
|
-
* ```ts
|
|
143
|
-
* import { describe, it } from "@std/testing/bdd";
|
|
144
|
-
* import { assertEquals } from "@std/assert";
|
|
145
|
-
*
|
|
146
|
-
* describe("example", () => {
|
|
147
|
-
* it("should pass", () => {
|
|
148
|
-
* assertEquals(2 + 2, 4);
|
|
149
|
-
* });
|
|
150
|
-
*
|
|
151
|
-
* it.only("should pass too", () => {
|
|
152
|
-
* assertEquals(3 + 4, 7);
|
|
153
|
-
* });
|
|
154
|
-
* });
|
|
155
|
-
* ```
|
|
156
|
-
*
|
|
157
|
-
* @param args The test case
|
|
158
|
-
*/
|
|
159
|
-
it.only = function itOnly(...args) {
|
|
160
|
-
const options = itDefinition(...args);
|
|
161
|
-
return it({
|
|
162
|
-
...options,
|
|
163
|
-
only: true,
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* Ignore this test case.
|
|
168
|
-
*
|
|
169
|
-
* @example Usage
|
|
170
|
-
* ```ts
|
|
171
|
-
* import { describe, it } from "@std/testing/bdd";
|
|
172
|
-
* import { assertEquals } from "@std/assert";
|
|
173
|
-
*
|
|
174
|
-
* describe("example", () => {
|
|
175
|
-
* it("should pass", () => {
|
|
176
|
-
* assertEquals(2 + 2, 4);
|
|
177
|
-
* });
|
|
178
|
-
*
|
|
179
|
-
* it.ignore("should pass too", () => {
|
|
180
|
-
* assertEquals(3 + 4, 7);
|
|
181
|
-
* });
|
|
182
|
-
* });
|
|
183
|
-
* ```
|
|
184
|
-
*
|
|
185
|
-
* @param args The test case
|
|
186
|
-
*/
|
|
187
|
-
it.ignore = function itIgnore(...args) {
|
|
188
|
-
const options = itDefinition(...args);
|
|
189
|
-
return it({
|
|
190
|
-
...options,
|
|
191
|
-
ignore: true,
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
/** Skip this test case.
|
|
195
|
-
*
|
|
196
|
-
* @example Usage
|
|
197
|
-
* ```ts
|
|
198
|
-
* import { describe, it } from "@std/testing/bdd";
|
|
199
|
-
* import { assertEquals } from "@std/assert";
|
|
200
|
-
*
|
|
201
|
-
* describe("example", () => {
|
|
202
|
-
* it("should pass", () => {
|
|
203
|
-
* assertEquals(2 + 2, 4);
|
|
204
|
-
* });
|
|
205
|
-
*
|
|
206
|
-
* it.skip("should pass too", () => {
|
|
207
|
-
* assertEquals(3 + 4, 7);
|
|
208
|
-
* });
|
|
209
|
-
* });
|
|
210
|
-
* ```
|
|
211
|
-
*
|
|
212
|
-
* @param args The test case
|
|
213
|
-
*/
|
|
214
|
-
it.skip = function itSkip(...args) {
|
|
215
|
-
it.ignore(...args);
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* Alias of {@linkcode it}
|
|
219
|
-
*
|
|
220
|
-
* Registers an individual test case.
|
|
221
|
-
*
|
|
222
|
-
* @example Usage
|
|
223
|
-
* ```ts
|
|
224
|
-
* import { test } from "@std/testing/bdd";
|
|
225
|
-
* import { assertEquals } from "@std/assert";
|
|
226
|
-
*
|
|
227
|
-
* test("a test case", () => {
|
|
228
|
-
* // test case
|
|
229
|
-
* assertEquals(2 + 2, 4);
|
|
230
|
-
* });
|
|
231
|
-
* ```
|
|
232
|
-
*
|
|
233
|
-
* @typeParam T The self type of the function to implement the test case
|
|
234
|
-
* @param args The test case
|
|
235
|
-
*/
|
|
236
|
-
function test(...args) {
|
|
237
|
-
it(...args);
|
|
238
|
-
}
|
|
239
|
-
function addHook(name, fn) {
|
|
240
|
-
if (!_test_suite_js_1.TestSuiteInternal.current) {
|
|
241
|
-
if (_test_suite_js_1.TestSuiteInternal.started) {
|
|
242
|
-
throw new Error("Cannot add global hooks after a global test is registered");
|
|
243
|
-
}
|
|
244
|
-
_test_suite_js_1.TestSuiteInternal.current = new _test_suite_js_1.TestSuiteInternal({
|
|
245
|
-
name: "global",
|
|
246
|
-
[name]: fn,
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
_test_suite_js_1.TestSuiteInternal.setHook(_test_suite_js_1.TestSuiteInternal.current, name, fn);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Run some shared setup before all of the tests in the suite.
|
|
255
|
-
*
|
|
256
|
-
* @example Usage
|
|
257
|
-
* ```ts
|
|
258
|
-
* import { describe, it, beforeAll } from "@std/testing/bdd";
|
|
259
|
-
* import { assertEquals } from "@std/assert";
|
|
260
|
-
*
|
|
261
|
-
* beforeAll(() => {
|
|
262
|
-
* console.log("beforeAll");
|
|
263
|
-
* });
|
|
264
|
-
*
|
|
265
|
-
* describe("example", () => {
|
|
266
|
-
* it("should pass", () => {
|
|
267
|
-
* // test case
|
|
268
|
-
* assertEquals(2 + 2, 4);
|
|
269
|
-
* });
|
|
270
|
-
* });
|
|
271
|
-
* ```
|
|
272
|
-
*
|
|
273
|
-
* @typeParam T The self type of the function
|
|
274
|
-
* @param fn The function to implement the setup behavior.
|
|
275
|
-
*/
|
|
276
|
-
function beforeAll(fn) {
|
|
277
|
-
addHook("beforeAll", fn);
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Alias of {@linkcode beforeAll}
|
|
281
|
-
*
|
|
282
|
-
* Run some shared setup before all of the tests in the suite.
|
|
283
|
-
*
|
|
284
|
-
* @example Usage
|
|
285
|
-
* ```ts
|
|
286
|
-
* import { describe, it, before } from "@std/testing/bdd";
|
|
287
|
-
* import { assertEquals } from "@std/assert";
|
|
288
|
-
*
|
|
289
|
-
* before(() => {
|
|
290
|
-
* console.log("before");
|
|
291
|
-
* });
|
|
292
|
-
*
|
|
293
|
-
* describe("example", () => {
|
|
294
|
-
* it("should pass", () => {
|
|
295
|
-
* // test case
|
|
296
|
-
* assertEquals(2 + 2, 4);
|
|
297
|
-
* });
|
|
298
|
-
* });
|
|
299
|
-
* ```
|
|
300
|
-
*
|
|
301
|
-
* @typeParam T The self type of the function
|
|
302
|
-
* @param fn The function to implement the setup behavior.
|
|
303
|
-
*/
|
|
304
|
-
function before(fn) {
|
|
305
|
-
beforeAll(fn);
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Run some shared teardown after all of the tests in the suite.
|
|
309
|
-
*
|
|
310
|
-
* @example Usage
|
|
311
|
-
* ```ts
|
|
312
|
-
* import { describe, it, afterAll } from "@std/testing/bdd";
|
|
313
|
-
* import { assertEquals } from "@std/assert";
|
|
314
|
-
*
|
|
315
|
-
* afterAll(() => {
|
|
316
|
-
* console.log("afterAll");
|
|
317
|
-
* });
|
|
318
|
-
*
|
|
319
|
-
* describe("example", () => {
|
|
320
|
-
* it("should pass", () => {
|
|
321
|
-
* // test case
|
|
322
|
-
* assertEquals(2 + 2, 4);
|
|
323
|
-
* });
|
|
324
|
-
* });
|
|
325
|
-
* ```
|
|
326
|
-
*
|
|
327
|
-
* @typeParam T The self type of the function
|
|
328
|
-
* @param fn The function to implement the teardown behavior.
|
|
329
|
-
*/
|
|
330
|
-
function afterAll(fn) {
|
|
331
|
-
addHook("afterAll", fn);
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* Alias of {@linkcode afterAll}.
|
|
335
|
-
*
|
|
336
|
-
* Run some shared teardown after all of the tests in the suite.
|
|
337
|
-
*
|
|
338
|
-
* @example Usage
|
|
339
|
-
* ```ts
|
|
340
|
-
* import { describe, it, after } from "@std/testing/bdd";
|
|
341
|
-
* import { assertEquals } from "@std/assert";
|
|
342
|
-
*
|
|
343
|
-
* after(() => {
|
|
344
|
-
* console.log("after");
|
|
345
|
-
* });
|
|
346
|
-
*
|
|
347
|
-
* describe("example", () => {
|
|
348
|
-
* it("should pass", () => {
|
|
349
|
-
* // test case
|
|
350
|
-
* assertEquals(2 + 2, 4);
|
|
351
|
-
* });
|
|
352
|
-
* });
|
|
353
|
-
* ```
|
|
354
|
-
*
|
|
355
|
-
* @typeParam T The self type of the function
|
|
356
|
-
* @param fn The function to implement the teardown behavior.
|
|
357
|
-
*/
|
|
358
|
-
function after(fn) {
|
|
359
|
-
afterAll(fn);
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* Run some shared setup before each test in the suite.
|
|
363
|
-
*
|
|
364
|
-
* @example Usage
|
|
365
|
-
* ```ts
|
|
366
|
-
* import { describe, it, beforeEach } from "@std/testing/bdd";
|
|
367
|
-
* import { assertEquals } from "@std/assert";
|
|
368
|
-
*
|
|
369
|
-
* beforeEach(() => {
|
|
370
|
-
* console.log("beforeEach");
|
|
371
|
-
* });
|
|
372
|
-
*
|
|
373
|
-
* describe("example", () => {
|
|
374
|
-
* it("should pass", () => {
|
|
375
|
-
* // test case
|
|
376
|
-
* assertEquals(2 + 2, 4);
|
|
377
|
-
* });
|
|
378
|
-
* });
|
|
379
|
-
* ```
|
|
380
|
-
*
|
|
381
|
-
* @typeParam T The self type of the function
|
|
382
|
-
* @param fn The function to implement the shared setup behavior
|
|
383
|
-
*/
|
|
384
|
-
function beforeEach(fn) {
|
|
385
|
-
addHook("beforeEach", fn);
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Run some shared teardown after each test in the suite.
|
|
389
|
-
*
|
|
390
|
-
* @example Usage
|
|
391
|
-
* ```ts
|
|
392
|
-
* import { describe, it, afterEach } from "@std/testing/bdd";
|
|
393
|
-
* import { assertEquals } from "@std/assert";
|
|
394
|
-
*
|
|
395
|
-
* afterEach(() => {
|
|
396
|
-
* console.log("afterEach");
|
|
397
|
-
* });
|
|
398
|
-
*
|
|
399
|
-
* describe("example", () => {
|
|
400
|
-
* it("should pass", () => {
|
|
401
|
-
* // test case
|
|
402
|
-
* assertEquals(2 + 2, 4);
|
|
403
|
-
* });
|
|
404
|
-
* });
|
|
405
|
-
* ```
|
|
406
|
-
*
|
|
407
|
-
* @typeParam T The self type of the function
|
|
408
|
-
* @param fn The function to implement the shared teardown behavior
|
|
409
|
-
*/
|
|
410
|
-
function afterEach(fn) {
|
|
411
|
-
addHook("afterEach", fn);
|
|
412
|
-
}
|
|
413
|
-
/** Generates a DescribeDefinition from DescribeArgs. */
|
|
414
|
-
function describeDefinition(...args) {
|
|
415
|
-
var _a, _b;
|
|
416
|
-
let [suiteOptionsOrNameOrFn, optionsOrNameOrFn, optionsOrFn, fn,] = args;
|
|
417
|
-
let suite = undefined;
|
|
418
|
-
let name;
|
|
419
|
-
let options;
|
|
420
|
-
if (typeof suiteOptionsOrNameOrFn === "object" &&
|
|
421
|
-
typeof suiteOptionsOrNameOrFn.symbol === "symbol") {
|
|
422
|
-
suite = suiteOptionsOrNameOrFn;
|
|
423
|
-
}
|
|
424
|
-
else {
|
|
425
|
-
fn = optionsOrFn;
|
|
426
|
-
optionsOrFn = optionsOrNameOrFn;
|
|
427
|
-
optionsOrNameOrFn = suiteOptionsOrNameOrFn;
|
|
428
|
-
}
|
|
429
|
-
if (typeof optionsOrNameOrFn === "string") {
|
|
430
|
-
name = optionsOrNameOrFn;
|
|
431
|
-
if (typeof optionsOrFn === "function") {
|
|
432
|
-
fn = optionsOrFn;
|
|
433
|
-
options = {};
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
options = optionsOrFn !== null && optionsOrFn !== void 0 ? optionsOrFn : {};
|
|
437
|
-
if (fn === undefined) {
|
|
438
|
-
fn = options.fn;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
else if (typeof optionsOrNameOrFn === "function") {
|
|
443
|
-
fn = optionsOrNameOrFn;
|
|
444
|
-
name = fn.name;
|
|
445
|
-
options = {};
|
|
446
|
-
}
|
|
447
|
-
else {
|
|
448
|
-
options = optionsOrNameOrFn !== null && optionsOrNameOrFn !== void 0 ? optionsOrNameOrFn : {};
|
|
449
|
-
if (typeof optionsOrFn === "function") {
|
|
450
|
-
fn = optionsOrFn;
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
fn = options.fn;
|
|
454
|
-
}
|
|
455
|
-
name = (_b = (_a = options.name) !== null && _a !== void 0 ? _a : fn === null || fn === void 0 ? void 0 : fn.name) !== null && _b !== void 0 ? _b : "";
|
|
456
|
-
}
|
|
457
|
-
if (suite === undefined) {
|
|
458
|
-
suite = options.suite;
|
|
459
|
-
}
|
|
460
|
-
if (suite === undefined && _test_suite_js_1.TestSuiteInternal.current) {
|
|
461
|
-
const { symbol } = _test_suite_js_1.TestSuiteInternal.current;
|
|
462
|
-
suite = { symbol };
|
|
463
|
-
}
|
|
464
|
-
return {
|
|
465
|
-
...options,
|
|
466
|
-
suite: suite,
|
|
467
|
-
name,
|
|
468
|
-
fn: fn,
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Registers a test suite.
|
|
473
|
-
*
|
|
474
|
-
* @example Usage
|
|
475
|
-
* ```ts
|
|
476
|
-
* import { describe, it } from "@std/testing/bdd";
|
|
477
|
-
* import { assertEquals } from "@std/assert";
|
|
478
|
-
*
|
|
479
|
-
* describe("example", () => {
|
|
480
|
-
* it("should pass", () => {
|
|
481
|
-
* // test case
|
|
482
|
-
* assertEquals(2 + 2, 4);
|
|
483
|
-
* });
|
|
484
|
-
* });
|
|
485
|
-
* ```
|
|
486
|
-
*
|
|
487
|
-
* @typeParam T The self type of the test suite body.
|
|
488
|
-
* @param args The test suite body.
|
|
489
|
-
* @returns The test suite
|
|
490
|
-
*/
|
|
491
|
-
function describe(...args) {
|
|
492
|
-
if (_test_suite_js_1.TestSuiteInternal.runningCount > 0) {
|
|
493
|
-
throw new Error("Cannot register new test suites after already registered test cases start running");
|
|
494
|
-
}
|
|
495
|
-
const options = describeDefinition(...args);
|
|
496
|
-
if (!_test_suite_js_1.TestSuiteInternal.started)
|
|
497
|
-
_test_suite_js_1.TestSuiteInternal.started = true;
|
|
498
|
-
const { symbol } = new _test_suite_js_1.TestSuiteInternal(options);
|
|
499
|
-
return { symbol };
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Only execute this test suite.
|
|
503
|
-
*
|
|
504
|
-
* @example Usage
|
|
505
|
-
* ```ts
|
|
506
|
-
* import { describe, it, beforeAll } from "@std/testing/bdd";
|
|
507
|
-
* import { assertEquals } from "@std/assert";
|
|
508
|
-
*
|
|
509
|
-
* describe("example", () => {
|
|
510
|
-
* it("should pass", () => {
|
|
511
|
-
* assertEquals(2 + 2, 4);
|
|
512
|
-
* });
|
|
513
|
-
* });
|
|
514
|
-
*
|
|
515
|
-
* // Only this test suite will run
|
|
516
|
-
* describe.only("example 2", () => {
|
|
517
|
-
* it("should pass too", () => {
|
|
518
|
-
* assertEquals(3 + 4, 7);
|
|
519
|
-
* });
|
|
520
|
-
* });
|
|
521
|
-
* ```
|
|
522
|
-
*
|
|
523
|
-
* @param args The test suite body
|
|
524
|
-
*/
|
|
525
|
-
describe.only = function describeOnly(...args) {
|
|
526
|
-
const options = describeDefinition(...args);
|
|
527
|
-
return describe({
|
|
528
|
-
...options,
|
|
529
|
-
only: true,
|
|
530
|
-
});
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* Ignore the test suite.
|
|
534
|
-
*
|
|
535
|
-
* @example Usage
|
|
536
|
-
* ```ts
|
|
537
|
-
* import { describe, it, beforeAll } from "@std/testing/bdd";
|
|
538
|
-
* import { assertEquals } from "@std/assert";
|
|
539
|
-
*
|
|
540
|
-
* describe("example", () => {
|
|
541
|
-
* it("should pass", () => {
|
|
542
|
-
* assertEquals(2 + 2, 4);
|
|
543
|
-
* });
|
|
544
|
-
* });
|
|
545
|
-
*
|
|
546
|
-
* describe.ignore("example 2", () => {
|
|
547
|
-
* it("should pass too", () => {
|
|
548
|
-
* assertEquals(3 + 4, 7);
|
|
549
|
-
* });
|
|
550
|
-
* });
|
|
551
|
-
* ```
|
|
552
|
-
*
|
|
553
|
-
* @param args The test suite body
|
|
554
|
-
*/
|
|
555
|
-
describe.ignore = function describeIgnore(...args) {
|
|
556
|
-
const options = describeDefinition(...args);
|
|
557
|
-
return describe({
|
|
558
|
-
...options,
|
|
559
|
-
ignore: true,
|
|
560
|
-
});
|
|
561
|
-
};
|
|
562
|
-
/**
|
|
563
|
-
* Skip the test suite.
|
|
564
|
-
*
|
|
565
|
-
* @example Usage
|
|
566
|
-
* ```ts
|
|
567
|
-
* import { describe, it, beforeAll } from "@std/testing/bdd";
|
|
568
|
-
* import { assertEquals } from "@std/assert";
|
|
569
|
-
*
|
|
570
|
-
* describe("example", () => {
|
|
571
|
-
* it("should pass", () => {
|
|
572
|
-
* assertEquals(2 + 2, 4);
|
|
573
|
-
* });
|
|
574
|
-
* });
|
|
575
|
-
*
|
|
576
|
-
* describe.skip("example 2", () => {
|
|
577
|
-
* it("should pass too", () => {
|
|
578
|
-
* assertEquals(3 + 4, 7);
|
|
579
|
-
* });
|
|
580
|
-
* });
|
|
581
|
-
* ```
|
|
582
|
-
*
|
|
583
|
-
* @param args The test suite body
|
|
584
|
-
*/
|
|
585
|
-
describe.skip = function describeSkip(...args) {
|
|
586
|
-
return describe.ignore(...args);
|
|
587
|
-
};
|