generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from nimblehq/release/0.9.0
Release 0.9.0 (10)
- Loading branch information
Showing
7 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
# Python | ||
.venv/ | ||
scripts/__pycache__/ | ||
|
||
# VSCode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Sample CodeCov config for private repository | ||
codecov: | ||
bot: luongvo | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
status: | ||
project: off | ||
patch: off | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: | ||
layout: "reach,diff,flags,files,tree" | ||
behavior: default | ||
require_changes: no | ||
|
||
ignore: | ||
- "lib/di" | ||
- "lib/gen" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
part 'use_case_result.dart'; | ||
|
||
abstract class BaseUseCase<T extends Result> { | ||
const BaseUseCase(); | ||
} | ||
|
||
abstract class UseCase<T, P> extends BaseUseCase<Result<T>> { | ||
const UseCase() : super(); | ||
|
||
Future<Result<T>> call(P params); | ||
} | ||
|
||
abstract class NoParamsUseCase<T> extends BaseUseCase<Result<T>> { | ||
const NoParamsUseCase() : super(); | ||
|
||
Future<Result<T>> call(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
part of 'base_use_case.dart'; | ||
|
||
abstract class Result<T> { | ||
Result._(); | ||
} | ||
|
||
class Success<T> extends Result<T> { | ||
final T value; | ||
|
||
Success(this.value) : super._(); | ||
} | ||
|
||
class UseCaseException implements Exception { | ||
final dynamic actualException; | ||
|
||
UseCaseException(this.actualException); | ||
} | ||
|
||
class Failed<T> extends Result<T> { | ||
final UseCaseException exception; | ||
|
||
Failed(this.exception) : super._(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters