Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rk0cc committed Jan 9, 2024
1 parent 35bf2d1 commit cb382f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions model/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ final class MockOgHrefClient extends BaseClient

/// Define new replicated [Client] for executing under
/// test environment.
///
///
/// All expected content in specific links should be stored
/// into [contentLinker] which is a [Map] with [Uri] key and
/// [String] value to denotes expected content in [contentType]
Expand All @@ -93,17 +93,17 @@ final class MockOgHrefClient extends BaseClient
/// will provided content of the [Uri] in status code `200`.
/// Otherwise, it returns empty [String] with status code
/// `404`.
///
///
/// Default [contentType] uses `text/plain` as returned value
/// when making [Response]. However, there are only three
/// eligable values can be used without throwing [ContentTypeMismatchedException]
/// in [MetaFetch.fetchFromHttp] or [MetaFetch.fetchAllFromHttp] that
/// in [MetaFetch.fetchFromHttp] or [MetaFetch.fetchAllFromHttp] that
/// they are the most suitable type for using in webpage:
///
///
/// * `text/plain`
/// * `text/html`
/// * `application/xhtml+xml`
///
///
/// Moreover, every [Uri] mapped in [contentLinker] **MUST BE** used
/// `HTTP(S)` protocol. If at least one [Uri.scheme] return other than
/// `HTTP(S)`, it throws [ArgumentError].
Expand Down
2 changes: 1 addition & 1 deletion model/lib/src/fetch/fetch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ abstract final class MetaFetch {

/// A dedicated [MetaFetch] which replicate [Client] behaviours with
/// mapped link in [MockOgHrefClient.usesSample].
///
///
/// To uses customized content rather than provided responses where found from
/// sample, please attach [MockOgHrefClient] with defined link
/// and contents to [MetaFetchTester.new], then assign into [instance].
Expand Down
4 changes: 2 additions & 2 deletions model/lib/src/fetch/tester.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ typedef MockOgHrefClientConstructor = MockOgHrefClient Function();

/// Extended [MetaFetch] for performing testing purpose which
/// replicates request and response actions in [MockOgHrefClient]
/// since real network communication is forbidden during test
/// since real network communication is forbidden during test
/// (especially running in Flutter environments).
final class MetaFetchTester extends MetaFetch {
final MockOgHrefClientConstructor _clientConstructor;

/// Generate new [MetaFetchTester] for running [MetaFetch]
/// features in simulated environment.
///
///
/// To apply the features to other `oghref` packages,
/// please attach it into [MetaFetch.instance].
MetaFetchTester(MockOgHrefClientConstructor clientConstructor)
Expand Down

0 comments on commit cb382f1

Please sign in to comment.