mocked 0.0.2
A mocking framework for the D programming language
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
MockeD
A mocking framework for the D programming language.
import mocked;
class Dependency
{
string authorOf(string phrase)
{
return null;
}
}
enum string phrase = "[T]he meaning of a word is its use in the language.";
enum string expected = "L. Wittgenstein";
Mocker mocker;
auto builder = mocker.mock!Dependency;
builder.expect
.authorOf("[T]he meaning of a word is its use in the language.")
.returns(expected);
auto dependency = builder.getMock;
assert(dependency.authorOf(phrase) == expected);
- Registered by Eugene Wissner
- 0.0.2 released 3 years ago
- funkwerk-mobility/mocked
- MPL-2.0
- Authors:
- Dependencies:
- none
- Versions:
-
4.2.1 2022-Jun-08 4.2.0 2022-Jun-06 4.1.0 2021-Apr-27 4.1.0-rc 2021-Apr-27 4.0.5 2021-Apr-21 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
147 downloads total
-
- Score:
- 0.5
- Short URL:
- mocked.dub.pm