MCPcopy Create free account
hub / github.com/bytedance/bolt / call

Method call

bolt/expression/tests/GenericWriterTest.cpp:779–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777struct SubscriptSimpleFunc {
778 BOLT_DEFINE_FUNCTION_TYPES(T);
779 bool call(
780 out_type<Generic<T1>>& out,
781 const arg_type<Array<Generic<T1>>>& input,
782 int64_t index) {
783 if (!input[index - 1].has_value()) {
784 return false;
785 }
786
787 out.copy_from(input[index - 1].value());
788 return true;
789 }
790};
791
792TEST_F(GenericWriterTest, copyFromGeneric) {

Callers

nothing calls this directly

Calls 3

has_valueMethod · 0.80
copy_fromMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected