MCPcopy Index your code
hub / github.com/endbasic/endbasic / new

Method new

core/tests/testutils/callables/sum_doubles_fn.rs:29–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28impl SumDoublesFunction {
29 pub(super) fn new() -> Rc<Self> {
30 Rc::from(Self {
31 metadata: CallableMetadataBuilder::new("SUM_DOUBLES")
32 .with_return_type(ExprType::Double)
33 .with_syntax(&[(
34 &[],
35 Some(&RepeatedSyntax {
36 name: Cow::Borrowed("arg"),
37 type_syn: RepeatedTypeSyntax::AnyValue,
38 sep: ArgSepSyntax::Exactly(ArgSep::Long),
39 require_one: false,
40 allow_missing: true,
41 }),
42 )])
43 .test_build(),
44 })
45 }
46}
47
48impl Callable for SumDoublesFunction {

Callers

nothing calls this directly

Calls 3

test_buildMethod · 0.80
with_syntaxMethod · 0.80
with_return_typeMethod · 0.80

Tested by

no test coverage detected