refactored: refactored mocking, exception to testing, support packages

This commit is contained in:
Patrick Stewart 2024-11-11 12:49:32 -07:00
parent cb16079d14
commit 601a5e6210
24 changed files with 38 additions and 38 deletions

View file

@ -1,7 +1,7 @@
/// An easily-extensible web server framework in Dart.
library platform_core;
export 'package:platform_exceptions/http_exception.dart';
export 'package:platform_support/exceptions.dart';
export 'package:platform_model/model.dart';
export 'package:platform_route/route.dart';
export 'src/core/core.dart';

View file

@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io' show Cookie;
import 'package:platform_exceptions/http_exception.dart';
import 'package:platform_support/exceptions.dart';
import 'package:platform_route/route.dart';
import 'package:belatuk_combinator/belatuk_combinator.dart';
import 'package:stack_trace/stack_trace.dart';

View file

@ -1,6 +1,6 @@
import 'dart:async';
import 'package:platform_exceptions/http_exception.dart';
import 'package:platform_support/exceptions.dart';
import 'service.dart';

View file

@ -1,6 +1,6 @@
library angel_framework.http.metadata;
import 'package:platform_exceptions/http_exception.dart';
import 'package:platform_support/exceptions.dart';
import 'hooked_service.dart' show HookedServiceEventListener;
import 'request_context.dart';

View file

@ -4,7 +4,7 @@ import 'dart:async';
import 'dart:collection' show HashMap;
import 'dart:convert';
import 'package:platform_container/container.dart';
import 'package:platform_exceptions/http_exception.dart';
import 'package:platform_support/exceptions.dart';
import 'package:platform_route/route.dart';
import 'package:belatuk_combinator/belatuk_combinator.dart';
import 'package:http_parser/http_parser.dart';

View file

@ -1,7 +1,7 @@
library platform_core.http.service;
import 'dart:async';
import 'package:platform_exceptions/http_exception.dart';
import 'package:platform_support/exceptions.dart';
import 'package:belatuk_merge_map/belatuk_merge_map.dart';
import 'package:quiver/core.dart';
import '../util.dart';

View file

@ -5,7 +5,7 @@ import 'package:platform_container/container.dart';
import 'package:platform_core/core.dart';
import 'package:collection/collection.dart' show IterableExtension;
import 'package:http2/transport.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:uuid/uuid.dart';
final RegExp _comma = RegExp(r',\s*');

View file

@ -4,7 +4,7 @@ import 'dart:io';
import 'package:platform_core/core.dart' hide Header;
import 'package:platform_core/http.dart';
import 'package:http2/transport.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'http2_request_context.dart';
import 'http2_response_context.dart';
import 'package:uuid/uuid.dart';

View file

@ -389,20 +389,6 @@ packages:
relative: true
source: path
version: "9.0.0"
platform_exceptions:
dependency: "direct main"
description:
path: "../exceptions"
relative: true
source: path
version: "9.0.0"
platform_mocking:
dependency: "direct main"
description:
path: "../mocking"
relative: true
source: path
version: "9.0.0"
platform_model:
dependency: "direct main"
description:
@ -417,6 +403,20 @@ packages:
relative: true
source: path
version: "9.0.0"
platform_support:
dependency: "direct main"
description:
path: "../support"
relative: true
source: path
version: "9.0.0"
platform_testing:
dependency: "direct main"
description:
path: "../testing"
relative: true
source: path
version: "9.0.0"
pool:
dependency: transitive
description:

View file

@ -8,10 +8,10 @@ environment:
sdk: '>=3.3.0 <4.0.0'
dependencies:
platform_container: ^9.0.0
platform_exceptions: ^9.0.0
platform_model: ^9.0.0
platform_route: ^9.0.0
platform_mocking: ^9.0.0
platform_support: ^9.0.0
platform_testing: ^9.0.0
belatuk_merge_map: ^5.1.0
belatuk_combinator: ^5.2.0
belatuk_http_server: ^4.4.0

View file

@ -3,7 +3,7 @@ import 'dart:io';
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
final Uri endpoint = Uri.parse('http://example.com/accept');

View file

@ -3,7 +3,7 @@ import 'dart:convert';
import 'dart:io';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
void main() {

View file

@ -6,7 +6,7 @@ import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:http/http.dart' as http;
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
import 'common.dart';

View file

@ -1,7 +1,7 @@
import 'dart:convert';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
void main() {

View file

@ -6,7 +6,7 @@ import 'package:platform_core/http.dart';
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:http/http.dart' as http;
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
import 'common.dart';

View file

@ -6,7 +6,7 @@ import 'dart:typed_data' show BytesBuilder;
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
Future<List<int>> getBody(MockHttpResponse rs) async {

View file

@ -2,7 +2,7 @@ import 'dart:async';
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
final Uri endpoint = Uri.parse('http://example.com');

View file

@ -3,7 +3,7 @@ import 'dart:convert';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:http_parser/http_parser.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
void main() {

View file

@ -4,7 +4,7 @@ import 'dart:convert';
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:logging/logging.dart';
import 'package:test/test.dart';

View file

@ -3,7 +3,7 @@ import 'dart:convert';
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';

View file

@ -4,7 +4,7 @@ import 'dart:io' show stderr;
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';

View file

@ -4,7 +4,7 @@ import 'dart:convert';
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';
void main() {

View file

@ -5,7 +5,7 @@ import 'dart:io';
import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';

View file

@ -6,7 +6,7 @@ import 'package:platform_container/mirrors.dart';
import 'package:platform_core/core.dart';
import 'package:platform_core/http.dart';
import 'package:logging/logging.dart';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
import 'package:test/test.dart';