android13/external/stardoc/test/testdata/struct_default_value_test/golden.md

1.2 KiB
Executable File

check_struct_default_values

check_struct_default_values(struct_no_args, struct_arg, struct_args, struct_int_args,
                            struct_struct_args)

Checks the default values of structs.

PARAMETERS

Name Description Default Value
struct_no_args struct with no arguments struct()
struct_arg struct with one argument struct(foo = "bar")
struct_args struct with multiple arguments struct(bar = "foo", foo = "bar")
struct_int_args struct with int arguments struct(one = 1, three = 3, two = 2)
struct_struct_args struct with struct arguments struct(multiple = struct(one = 1, three = 3, two = 2), none = struct(), one = struct(foo = "bar"))