Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DiUS/java-faker
/ testLastName
Method
testLastName
src/test/java/com/github/javafaker/NameTest.java:45–48 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
}
44
45
@Test
46
public
void
testLastName() {
47
assertThat(faker.name().lastName(), matchesRegularExpression(
"[A-Za-z']+"
));
48
}
49
50
@Test
51
public
void
testPrefix() {
Callers
nothing calls this directly
Calls
3
matchesRegularExpression
Method · 0.80
lastName
Method · 0.45
name
Method · 0.45
Tested by
no test coverage detected