aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/struct_default_value_test/input.bzl
blob: ead514bdedf663f0e2e73f5f45cd389e2c8bad42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""The input file for struct default values test"""

def check_struct_default_values(
        struct_no_args = struct(),
        struct_arg = struct(foo = "bar"),
        struct_args = struct(foo = "bar", bar = "foo"),
        struct_int_args = struct(one = 1, two = 2, three = 3),
        struct_struct_args = struct(
            none = struct(),
            one = struct(foo = "bar"),
            multiple = struct(one = 1, two = 2, three = 3),
        )):
    """Checks the default values of structs.

    Args:
        struct_no_args: struct with no arguments
        struct_arg: struct with one argument
        struct_args: struct with multiple arguments
        struct_int_args: struct with int arguments
        struct_struct_args: struct with struct arguments
    """
    pass