MCPcopy Index your code
hub / github.com/aws-samples/eb-java-scorekeep / newUser

Method newUser

src/main/java/scorekeep/UserFactory.java:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 }
21
22 public User newUser() throws IOException {
23 String id = Identifiers.random();
24 User user = new User(id);
25 String name = randomName();
26 user.setName(name);
27 model.saveUser(user);
28 return user;
29 }
30
31 public User newUser(String name) throws IOException {
32 String id = Identifiers.random();

Callers

nothing calls this directly

Calls 4

randomMethod · 0.95
randomNameMethod · 0.95
setNameMethod · 0.95
saveUserMethod · 0.80

Tested by

no test coverage detected