(
&self,
h: &handlebars::Helper<'rc>,
_: &'reg handlebars::Handlebars<'reg>,
_: &'rc handlebars::Context,
_: &mut handlebars::RenderContext<'reg, 'rc>,
)
| 28 | h: &handlebars::Helper<'reg, 'rc>, |
| 29 | _: &'reg handlebars::Handlebars<'reg>, |
| 30 | _: &'rc handlebars::Context, |
| 31 | _: &mut handlebars::RenderContext<'reg, 'rc>, |
| 32 | ) -> Result<handlebars::ScopedJson<'reg, 'rc>, handlebars::RenderError> { |
| 33 | h.ensure_arguments_count(1, UPPERCASE_HELPER)?; |
| 34 | let to_case = h.get_param_as_str_or_fail(0, UPPERCASE_HELPER)?; |
| 35 | Ok(handlebars::ScopedJson::Derived(Value::String(to_case.to_uppercase()))) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /// Returns the lowercase version of the string in argument |
| 40 | /// ``` |
| 41 | /// # use codegenr_lib::helpers::*; |
| 42 | /// # use serde_json::json; |
| 43 | /// assert_eq!( |
nothing calls this directly
no test coverage detected