MCPcopy Create free account
hub / github.com/BaseXdb/basex / run

Method run

basex-core/src/main/java/org/basex/core/cmd/ShowUsers.java:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 @Override
36 protected boolean run() throws IOException {
37 final String name = args[0];
38 if(!name.isEmpty() && !Databases.validName(name)) return error(NAME_INVALID_X, name);
39 out.println(context.users.info(name.isEmpty() ? null : name, context).finish());
40 return true;
41 }
42
43 @Override
44 public void addLocks() {

Callers

nothing calls this directly

Calls 6

validNameMethod · 0.95
infoMethod · 0.65
isEmptyMethod · 0.45
errorMethod · 0.45
printlnMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected