summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/quickchecking/tests/fuzzed-c-headers.rs
blob: e394efe387ce104c02c8e8ab973ac134d03abed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
extern crate quickcheck;
extern crate quickchecking;

use quickcheck::{Arbitrary, Gen};
use quickchecking::fuzzers::{
    ArrayDimensionC, BaseTypeC, BasicTypeDeclarationC, DeclarationC,
    DeclarationListC, FunctionPointerDeclarationC, FunctionPrototypeC, HeaderC,
    ParameterC, ParameterListC, PointerLevelC, StructDeclarationC,
    TypeQualifierC, UnionDeclarationC,
};
#[test]
fn test_declaraion_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: DeclarationC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_declaraion_list_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: DeclarationListC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_base_type_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: BaseTypeC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_type_qualifier_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: TypeQualifierC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_pointer_level_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: PointerLevelC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_array_dimension_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: ArrayDimensionC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_basic_type_declaration_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: BasicTypeDeclarationC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_struct_declaration_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: StructDeclarationC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_union_declaration_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: UnionDeclarationC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_function_pointer_declaration_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: FunctionPointerDeclarationC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_function_prototype_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: FunctionPrototypeC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_parameter_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: ParameterC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_parameter_list_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: ParameterListC = Arbitrary::arbitrary(gen);
}

#[test]
fn test_header_c_does_not_panic() {
    let gen = &mut Gen::new(50);
    let _: HeaderC = Arbitrary::arbitrary(gen);
}