MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / is_boolean

Method is_boolean

runners/helpers/ValidateRequest.cpp:586–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584 }
585
586 bool is_boolean() {
587 switch (mode) {
588 case Mode::Form: {
589 return false;
590 }
591 case Mode::Slice: {
592 return is_integer();
593 }
594 case Mode::Json: {
595 auto e = obj;
596 return e && e->is_boolean();
597 }
598 default:
599 return false;
600 }
601 }
602
603 td::Result<bool> get_boolean() {
604 switch (mode) {

Callers

nothing calls this directly

Calls 1

is_booleanMethod · 0.45

Tested by

no test coverage detected