1

我模拟以下功能:

def deploy(deployRequest: DeployRequest, mergeResults: Seq[MergeResult]): Task[Deployment]

对于结果,我不在乎输入。所以我的问题是,有没有办法用zio.test.mock.

就像是:

ProcessEngineMock.Deploy(any, any) returns value(deployment)

deployment是输出)

4

1 回答 1

3

Assertion.anything应该做的工作

于 2020-05-01T11:40:39.843 回答