mockGet method
void
mockGet({})
inherited
Mocks the result of the get command
Implementation
void mockGet({
required T result,
bool doThrow = false,
Directory? directory,
GgLog? ggLog,
String? message,
}) {
when(
() => get(
ggLog: ggLog ?? any(named: 'ggLog'),
directory: any(
named: 'directory',
that: predicate<Directory>(
(d) => directory == null || d.path == directory.path,
),
),
),
).thenAnswer((invocation) async {
return defaultReaction(
doThrow: doThrow,
invocation: invocation,
result: result,
message: message,
);
});
}