forked from Kolos65/Mockable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
34 deletions.
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
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,17 @@ | ||
// | ||
// MockerFallback.swift | ||
// Mockable | ||
// | ||
// Created by Kolos Foltanyi on 2024. 03. 17.. | ||
// | ||
|
||
/// Describes an optional default value to use when no stored | ||
/// return value found during mocking. | ||
enum MockerFallback<V> { | ||
/// Specifies a default value to be used when no stored return value is found. | ||
case value(V) | ||
|
||
/// Specifies that no default value should be used when no stored return value is found. | ||
/// This results in a fatal error. This is the default behavior. | ||
case none | ||
} |