refactor: refactored mocking package to testing

This commit is contained in:
Patrick Stewart 2024-11-11 12:46:51 -07:00
parent b42e1daa89
commit a0d5f68fad
16 changed files with 59 additions and 1 deletions

7
packages/testing/.gitignore vendored Normal file
View file

@ -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

View file

@ -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

View file

@ -1,5 +1,5 @@
import 'dart:async';
import 'package:platform_mocking/mocking.dart';
import 'package:platform_testing/http.dart';
Future<void> main() async {
var rq =

View file

@ -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';

View file

@ -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