MCPcopy Create free account
hub / github.com/apache/skywalking-php / validate_num_args

Method validate_num_args

src/plugin/style.rs:51–59  ·  view source on GitHub ↗
(
        self, execute_data: &mut ExecuteData, num: usize,
    )

Source from the content-addressed store, hash-verified

49 }
50
51 pub fn validate_num_args(
52 self, execute_data: &mut ExecuteData, num: usize,
53 ) -> anyhow::Result<()> {
54 let num = match self {
55 ApiStyle::OO => num,
56 ApiStyle::Procedural => num + 1,
57 };
58 validate_num_args(execute_data, num)
59 }
60
61 pub fn generate_operation_name(self, class_name: Option<&str>, function_name: &str) -> String {
62 match self {

Callers 1

get_peer_by_parametersFunction · 0.80

Calls 1

validate_num_argsFunction · 0.85

Tested by

no test coverage detected