MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / validPin

Function validPin

common/transferprotocol.cpp:250–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 }
249
250 bool validPin(const std::string& pin)
251 {
252 return pin.size() == 4 && std::all_of(pin.begin(), pin.end(), [](unsigned char c) { return std::isdigit(c) != 0; });
253 }
254
255 std::optional<uint64_t> zipStreamSize(const std::vector<SendFile>& files, const std::vector<std::string>& dirs)
256 {

Callers 6

startReceiverMethod · 0.50
validPinMethod · 0.50
startTransferSendMethod · 0.50
startReceiverMethod · 0.50
validPinMethod · 0.50
startTransferSendMethod · 0.50

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected