Testing the save operation for a User, my mockUser is something like this:
mock := models.User{
name: "a",
email: "b",
comment: "c",
ID: 1,
role: 2,
}
Is this better to creating a mock user with an actual plausible name “John Doe”, a plausible email “jonhdoe@yahoo.com”, a plausible ID (345), etc.
I like my non plausible user because it seems that it removes some bias and reminds, to any person looking at that test, that these fields are just strings or numbers which can have any value and we must accomodate for strange input.
On the other hand, a plausible user can make the test prettier for a human reader ? What do you think, and which version do you use for production code ?