cookie_cutter::__internal__single_source_single_template_tests!(
    nested_struct,
    "Peter's favorite sport is baseball and their favorite hobby is coding.",
    "../testdata/source_files/nested_struct.cctmpl",
    cookie_cutter::include_templates!("../testdata/source_files/nested_struct.cctmpl"),
    "nested_struct",
    value! {person: {name: "Peter", favorite: {sport: "baseball", hobby: "coding"}}},
    {
        #[allow(dead_code)]
        #[cfg_attr(feature = "serde", derive(Serialize))]
        struct Data {
            person: Person,
        }

        #[allow(dead_code)]
        #[cfg_attr(feature = "serde", derive(Serialize))]
        struct Person {
            name: &'static str,
            favorite: Favorite,
        }

        #[allow(dead_code)]
        #[cfg_attr(feature = "serde", derive(Serialize))]
        struct Favorite {
            sport: &'static str,
            hobby: &'static str,
        }
    },
    Data {
        person: Person {
            name: "Peter",
            favorite: Favorite {
                hobby: "coding",
                sport: "baseball",
            },
        },
    }
);
