26 EXPECT_GT(top_row_->sorted_children.size(), 1);
32 EXPECT_GT(top_row_->sorted_children.size(), 1);
38 EXPECT_GT(top_row_->sorted_children.size(), 1);
42 AssertBloatyFails({
"bloaty",
"-d",
"compileunits",
file}, errmsg);
43 AssertBloatyFails({
"bloaty",
"-d",
"inlines",
file}, errmsg);
56 EXPECT_GT(top_row_->sorted_children.size(), 1);
63 EXPECT_GT(top_row_->sorted_children.size(), 1);
67 AssertChildren(*top_row_, {
72 RunBloaty({
"bloaty",
"-d",
"symbols",
"-n",
"40",
"-s",
"vm",
file});
73 AssertChildren(*top_row_, {
84 RunBloaty({
"bloaty",
"-d",
"sections,symbols",
"-n",
"50",
file});
86 auto row = FindRow(
".bss");
88 AssertChildren(*row, {
93 row = FindRow(
".data");
95 AssertChildren(*row, {
100 row = FindRow(
".rodata");
102 AssertChildren(*row, {
117 EXPECT_GT(top_row_->sorted_children.size(), 3);
124 RunBloaty({
"bloaty",
"-d",
"symbols",
"-n",
"40",
"-s",
"vm",
file});
125 AssertChildren(*top_row_, {
138 AssertChildren(*top_row_,
146 auto row = FindRow(
"bar.o");
148 AssertChildren(*row, {
155 row = FindRow(
"foo.o");
157 AssertChildren(*row, {
163 row = FindRow(
"a_filename_longer_than_sixteen_chars.o");
165 AssertChildren(*row, {
180 EXPECT_GT(top_row_->sorted_children.size(), 3);
188 AssertChildren(*top_row_, {
205 EXPECT_GT(top_row_->sorted_children.size(), 3);
212 RunBloaty({
"bloaty",
"-d",
"symbols",
"-n",
"50",
"-s",
"vm",
file});
213 AssertChildren(*top_row_, {
225 auto row = FindRow(
"bar.o.c");
229 AssertChildren(*row, {
236 row = FindRow(
"foo.o.c");
240 AssertChildren(*row, {
255 RunBloaty({
"bloaty", file1, file2,
"-d",
"inputfiles"});
256 AssertChildren(*top_row_,
263 filename: "05-binary.bin"
264 filename: "07-binary-stripped.bin"
266 name: "rewritten_inputfiles"
267 base_data_source: "inputfiles"
270 replacement: "binary"
273 data_source: "rewritten_inputfiles"
278 static_cast<int>(size1 + size2))});
282 RunBloaty({
"bloaty",
"06-diff.a",
"--",
"03-simple.a",
"-d",
"symbols"});
283 AssertChildren(*top_row_, {
290 RunBloaty({
"bloaty",
"--debug-file=05-binary.bin",
"07-binary-stripped.bin",