Skip to content

Mock with interface style  #342

@zhangzitao

Description

@zhangzitao

Describe the feature

Interface style

Motivation

Why this project doesn't write in interface style ?

Related Issues

It's impossible to mock xxxDo struct when importing dao in other packages, the only way to write unit test for these packages is to launch a sqlite database then fill some fake records.
Is there any way to mock method of xxxDo struct?
if not, I think it's not appropriate for serious project, only suitable for project that is not in need for unit test.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions