@@ -8,7 +8,7 @@ definitions = '''
8
8
folly::F14NodeMap<int, int> m1;
9
9
folly::F14NodeMap<int, Bar> m2;
10
10
folly::F14NodeMap<int, int> m3;
11
- folly::F14NodeMap<int, int > m4;
11
+ folly::F14NodeMap<int, long > m4;
12
12
};
13
13
'''
14
14
@@ -42,7 +42,7 @@ definitions = '''
42
42
'''
43
43
expect_json = ''' [{
44
44
"staticSize":96,
45
- "dynamicSize":500 ,
45
+ "dynamicSize":572 ,
46
46
"members":[
47
47
{"name":"m1", "staticSize":24, "dynamicSize":72, "length":3, "capacity":3, "elementStaticSize":8},
48
48
{
@@ -65,14 +65,31 @@ definitions = '''
65
65
{"staticSize":8, "members":[{"name":"a"}, {"name": "b"}]}
66
66
]},
67
67
{"name":"m3", "staticSize":24, "dynamicSize":136, "length":7, "capacity":7, "elementStaticSize":8},
68
- {"name":"m4", "staticSize":24, "dynamicSize":168 , "length":9, "capacity":9, "elementStaticSize":8 }
68
+ {"name":"m4", "staticSize":24, "dynamicSize":240 , "length":9, "capacity":9, "elementStaticSize":12 }
69
69
]}]'''
70
70
expect_json_v2 = ''' [{
71
71
"staticSize":96,
72
72
"exclusiveSize": 0,
73
73
"members":[
74
- {"name":"m1", "staticSize":24, "exclusiveSize": 24, "length": 3, "capacity": 3},
75
- {"name":"m2", "staticSize":24, "exclusiveSize": 24, "length": 5, "capacity": 5},
76
- {"name":"m3", "staticSize":24, "exclusiveSize": 24, "length": 7, "capacity": 7},
77
- {"name":"m4", "staticSize":24, "exclusiveSize": 24, "length": 9, "capacity": 9}
78
- ]}]'''
74
+ {"name":"m1", "staticSize":24, "exclusiveSize": 72, "length": 3, "capacity": 3},
75
+ {"name":"m2", "staticSize":24, "exclusiveSize": 88, "length": 5, "capacity": 5},
76
+ {"name":"m3", "staticSize":24, "exclusiveSize": 104, "length": 7, "capacity": 7},
77
+ {
78
+ "name":"m4",
79
+ "staticSize":24,
80
+ "exclusiveSize": 120,
81
+ "length": 9,
82
+ "capacity": 9,
83
+ "members":[
84
+ {"staticSize":16, "exclusiveSize": 4},
85
+ {"staticSize":16, "exclusiveSize": 4},
86
+ {"staticSize":16, "exclusiveSize": 4},
87
+ {"staticSize":16, "exclusiveSize": 4},
88
+ {"staticSize":16, "exclusiveSize": 4},
89
+ {"staticSize":16, "exclusiveSize": 4},
90
+ {"staticSize":16, "exclusiveSize": 4},
91
+ {"staticSize":16, "exclusiveSize": 4},
92
+ {"staticSize":16, "exclusiveSize": 4}
93
+ ]
94
+ }]
95
+ }]'''
0 commit comments