diff --git a/packages/testing/.gitignore b/packages/testing/.gitignore new file mode 100644 index 0000000..3cceda5 --- /dev/null +++ b/packages/testing/.gitignore @@ -0,0 +1,7 @@ +# https://dart.dev/guides/libraries/private-files +# Created by `dart pub` +.dart_tool/ + +# Avoid committing pubspec.lock for library packages; see +# https://dart.dev/guides/libraries/private-files#pubspeclock. +pubspec.lock diff --git a/packages/exceptions/AUTHORS.md b/packages/testing/AUTHORS.md similarity index 100% rename from packages/exceptions/AUTHORS.md rename to packages/testing/AUTHORS.md diff --git a/packages/mocking/CHANGELOG.md b/packages/testing/CHANGELOG.md similarity index 100% rename from packages/mocking/CHANGELOG.md rename to packages/testing/CHANGELOG.md diff --git a/packages/exceptions/LICENSE b/packages/testing/LICENSE similarity index 100% rename from packages/exceptions/LICENSE rename to packages/testing/LICENSE diff --git a/packages/mocking/README.md b/packages/testing/README.md similarity index 100% rename from packages/mocking/README.md rename to packages/testing/README.md diff --git a/packages/testing/analysis_options.yaml b/packages/testing/analysis_options.yaml new file mode 100644 index 0000000..dee8927 --- /dev/null +++ b/packages/testing/analysis_options.yaml @@ -0,0 +1,30 @@ +# This file configures the static analysis results for your project (errors, +# warnings, and lints). +# +# This enables the 'recommended' set of lints from `package:lints`. +# This set helps identify many issues that may lead to problems when running +# or consuming Dart code, and enforces writing Dart using a single, idiomatic +# style and format. +# +# If you want a smaller set of lints you can change this to specify +# 'package:lints/core.yaml'. These are just the most critical lints +# (the recommended set includes the core lints). +# The core lints are also what is used by pub.dev for scoring packages. + +include: package:lints/recommended.yaml + +# Uncomment the following section to specify additional rules. + +# linter: +# rules: +# - camel_case_types + +# analyzer: +# exclude: +# - path/to/excluded/files/** + +# For more information about the core and recommended set of lints, see +# https://dart.dev/go/core-lints + +# For additional information about configuring this file, see +# https://dart.dev/guides/language/analysis-options diff --git a/packages/mocking/example/main.dart b/packages/testing/example/main.dart similarity index 77% rename from packages/mocking/example/main.dart rename to packages/testing/example/main.dart index 084975b..8c25743 100644 --- a/packages/mocking/example/main.dart +++ b/packages/testing/example/main.dart @@ -1,5 +1,5 @@ import 'dart:async'; -import 'package:platform_mocking/mocking.dart'; +import 'package:platform_testing/http.dart'; Future main() async { var rq = diff --git a/packages/testing/lib/http.dart b/packages/testing/lib/http.dart new file mode 100644 index 0000000..018561b --- /dev/null +++ b/packages/testing/lib/http.dart @@ -0,0 +1,6 @@ +export 'src/http/connection_info.dart'; +export 'src/http/headers.dart'; +export 'src/http/lockable_headers.dart'; +export 'src/http/request.dart'; +export 'src/http/response.dart'; +export 'src/http/session.dart'; diff --git a/packages/mocking/lib/src/connection_info.dart b/packages/testing/lib/src/http/connection_info.dart similarity index 100% rename from packages/mocking/lib/src/connection_info.dart rename to packages/testing/lib/src/http/connection_info.dart diff --git a/packages/mocking/lib/src/headers.dart b/packages/testing/lib/src/http/headers.dart similarity index 100% rename from packages/mocking/lib/src/headers.dart rename to packages/testing/lib/src/http/headers.dart diff --git a/packages/mocking/lib/src/lockable_headers.dart b/packages/testing/lib/src/http/lockable_headers.dart similarity index 100% rename from packages/mocking/lib/src/lockable_headers.dart rename to packages/testing/lib/src/http/lockable_headers.dart diff --git a/packages/mocking/lib/src/request.dart b/packages/testing/lib/src/http/request.dart similarity index 100% rename from packages/mocking/lib/src/request.dart rename to packages/testing/lib/src/http/request.dart diff --git a/packages/mocking/lib/src/response.dart b/packages/testing/lib/src/http/response.dart similarity index 100% rename from packages/mocking/lib/src/response.dart rename to packages/testing/lib/src/http/response.dart diff --git a/packages/mocking/lib/src/session.dart b/packages/testing/lib/src/http/session.dart similarity index 100% rename from packages/mocking/lib/src/session.dart rename to packages/testing/lib/src/http/session.dart diff --git a/packages/testing/pubspec.yaml b/packages/testing/pubspec.yaml new file mode 100644 index 0000000..ed6814c --- /dev/null +++ b/packages/testing/pubspec.yaml @@ -0,0 +1,15 @@ +name: platform_testing +description: Testing helper files for Protevus Platform. +version: 9.0.0 +# repository: https://github.com/my_org/my_repo + +environment: + sdk: ^3.5.4 + +# Add regular dependencies here. +dependencies: + charcode: ^1.3.1 + +dev_dependencies: + lints: ^4.0.0 + test: ^1.24.0 diff --git a/packages/mocking/test/all_test.dart b/packages/testing/test/all_test.dart similarity index 100% rename from packages/mocking/test/all_test.dart rename to packages/testing/test/all_test.dart