MCPcopy Create free account
hub / github.com/apple/coremltools / appendHelper

Method appendHelper

deps/protobuf/php/tests/test_util.php:514–522  ·  view source on GitHub ↗
($obj, $func_suffix, $value)

Source from the content-addressed store, hash-verified

512 }
513
514 private static function appendHelper($obj, $func_suffix, $value)
515 {
516 $getter_function = 'get'.$func_suffix;
517 $setter_function = 'set'.$func_suffix;
518
519 $arr = $obj->$getter_function();
520 $arr[] = $value;
521 $obj->$setter_function($arr);
522 }
523
524 private static function kvUpdateHelper($obj, $func_suffix, $key, $value)
525 {

Callers 3

setTestMessageMethod · 0.95
setTestMessage2Method · 0.95
setTestPackedMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected