go.starlark.net@v0.0.0-20231101134539-556fd59b42f6/starlark/testdata/function_param.star (about)

     1  # Functions used in starlark_test.TestParamDefault().
     2  
     3  def all_required(a, b, c): pass
     4  def all_opt(a="a", b=None, c=""): pass
     5  def mix_required_opt(a, b, c="c", d="d"): pass
     6  def with_varargs(a, b="b", *args): pass
     7  def with_varargs_kwonly(a, b="b", *args, c="c", d): pass
     8  def with_kwonly(a, b="b", *, c="c", d): pass
     9  def with_kwargs(a, b="b", c="c", **kwargs): pass
    10  def with_varargs_kwonly_kwargs(a, b="b", *args, c="c", d, e="e", **kwargs): pass