tests: add leaves & prune integration tests
tests: add leaves & prune integration tests

Closes #48943.

Signed-off-by: Baptiste Fontaine <bfee279af59f3e3f71f7ce1fa037ea7b90f93cbf@yahoo.fr>

keith/homebrew,lrascao/homebrew,ExtremeMan/homebrew,bigbes/homebrew,dickeyxxx/homebrew,Linuxbrew/linuxbrew,afh/homebrew,Angeldude/linuxbrew,royhodgman/homebrew,saketkc/linuxbrew,Red54/homebrew,yazuuchi/homebrew,dickeyxxx/homebrew,emcrisostomo/homebrew,dericed/homebrew,theeternalsw0rd/homebrew,vigo/homebrew,drbenmorgan/linuxbrew,Linuxbrew/linuxbrew,bigbes/homebrew,tschoonj/homebrew,decors/homebrew,hakamadare/homebrew,alebcay/homebrew,quantumsteve/homebrew,eighthave/homebrew,apjanke/homebrew,nandub/homebrew,benjaminfrank/homebrew,dongcarl/homebrew,reelsense/linuxbrew,elyscape/homebrew,liamstask/homebrew,hakamadare/homebrew,OJFord/homebrew,sjackman/linuxbrew,kevinastone/homebrew,kodabb/homebrew,ilovezfs/homebrew,bigbes/homebrew,ebouaziz/linuxbrew,ilovezfs/homebrew,mkrapp/homebrew,scorphus/homebrew,Red54/homebrew,Linuxbrew/linuxbrew,sometimesfood/homebrew,nandub/homebrew,gnubila-france/linuxbrew,theeternalsw0rd/homebrew,kevinastone/homebrew,chadcatlett/homebrew,MartinDelille/homebrew,ear/homebrew,muellermartin/homebrew,kodabb/homebrew,ralic/homebrew,emcrisostomo/homebrew,3van/homebrew,SteveClement/homebrew,jamer/homebrew,afh/homebrew,chadcatlett/homebrew,Asuranceturix/homebrew,TaylorMonacelli/homebrew,bukzor/linuxbrew,johanhammar/homebrew,afh/homebrew,johanhammar/homebrew,TaylorMonacelli/homebrew,drewwells/homebrew,elgertam/homebrew,tutumcloud/homebrew,OJFord/homebrew,keith/homebrew,josa42/homebrew,yazuuchi/homebrew,mkrapp/homebrew,vigo/homebrew,ryanfb/homebrew,emcrisostomo/homebrew,skinny-framework/homebrew,chadcatlett/homebrew,cprecioso/homebrew,tutumcloud/homebrew,bukzor/linuxbrew,ExtremeMan/homebrew,sjackman/linuxbrew,georgschoelly/homebrew,frodeaa/homebrew,base10/homebrew,Red54/homebrew,influxdb/homebrew,totalvoidness/homebrew,jamer/homebrew,deorth/homebrew,booi/homebrew,scorphus/homebrew,marcwebbie/homebrew,influxdata/homebrew,kevinastone/homebrew,tutumcloud/homebrew,apjanke/homebrew,3van/homebrew,brunchboy/homebrew,keith/homebrew,deorth/homebrew,thinker0/homebrew,filcab/homebrew,drewwells/homebrew,Asuranceturix/homebrew,ear/homebrew,Homebrew/linuxbrew,skinny-framework/homebrew,booi/homebrew,elgertam/homebrew,OJFord/homebrew,ralic/homebrew,ear/homebrew,sakra/homebrew,jamer/homebrew,ryanfb/homebrew,liamstask/homebrew,influxdata/homebrew,3van/homebrew,joshfriend/homebrew,reelsense/homebrew,joshfriend/homebrew,Homebrew/homebrew,SteveClement/homebrew,galaxy001/homebrew,totalvoidness/homebrew,reelsense/homebrew,SuperNEMO-DBD/cadfaelbrew,thinker0/homebrew,royhodgman/homebrew,gawbul/homebrew,Asuranceturix/homebrew,nandub/homebrew,menivaitsi/homebrew,hongkongkiwi/homebrew,MartinDelille/homebrew,influxdb/homebrew,AlexejK/homebrew,esamson/homebrew,sakra/homebrew,bigbes/homebrew,lrascao/homebrew,scorphus/homebrew,getgauge/homebrew,base10/homebrew,menivaitsi/homebrew,hanxue/homebrew,deorth/homebrew,johanhammar/homebrew,scpeters/homebrew,saketkc/linuxbrew,utzig/homebrew,optikfluffel/homebrew,decors/homebrew,decors/homebrew,sjackman/linuxbrew,hakamadare/homebrew,Angeldude/linuxbrew,cprecioso/homebrew,BrewTestBot/homebrew,alebcay/homebrew,BrewTestBot/homebrew,reelsense/linuxbrew,SuperNEMO-DBD/cadfaelbrew,influxdb/homebrew,pcottle/homebrew,ebouaziz/linuxbrew,benjaminfrank/homebrew,dutchcoders/homebrew,AlexejK/homebrew,tschoonj/homebrew,TaylorMonacelli/homebrew,Linuxbrew/linuxbrew,brunchboy/homebrew,skinny-framework/homebrew,johanhammar/homebrew,marcwebbie/homebrew,alebcay/homebrew,tschoonj/homebrew,dickeyxxx/homebrew,treyharris/homebrew,dutchcoders/homebrew,Homebrew/linuxbrew,influxdata/homebrew,base10/homebrew,reelsense/linuxbrew,Asuranceturix/homebrew,youtux/homebrew,MartinDelille/homebrew,drbenmorgan/linuxbrew,quantumsteve/homebrew,elyscape/homebrew,ryanfb/homebrew,dplarson/homebrew,filcab/homebrew,getgauge/homebrew,frodeaa/homebrew,dplarson/homebrew,alebcay/homebrew,Angeldude/linuxbrew,DoomHammer/linuxbrew,cprecioso/homebrew,utzig/homebrew,sferik/homebrew,dutchcoders/homebrew,georgschoelly/homebrew,ear/homebrew,eighthave/homebrew,scpeters/homebrew,sferik/homebrew,utzig/homebrew,dplarson/homebrew,scpeters/homebrew,bukzor/linuxbrew,sometimesfood/homebrew,esamson/homebrew,gawbul/homebrew,booi/homebrew,elyscape/homebrew,ExtremeMan/homebrew,influxdata/homebrew,thinker0/homebrew,SuperNEMO-DBD/cadfaelbrew,ablyler/homebrew,pcottle/homebrew,kevinastone/homebrew,sometimesfood/homebrew,totalvoidness/homebrew,afh/homebrew,royhodgman/homebrew,dongcarl/homebrew,ebouaziz/linuxbrew,OJFord/homebrew,ryanfb/homebrew,ralic/homebrew,hanxue/homebrew,optikfluffel/homebrew,kodabb/homebrew,reelsense/homebrew,esamson/homebrew,Asuranceturix/homebrew,decors/homebrew,BrewTestBot/homebrew,josa42/homebrew,AlexejK/homebrew,saketkc/linuxbrew,elyscape/homebrew,mobileoverlord/homebrew-1,SteveClement/homebrew,sakra/homebrew,cscetbon/homebrew,thinker0/homebrew,treyharris/homebrew,sjackman/linuxbrew,quantumsteve/homebrew,mobileoverlord/homebrew-1,Homebrew/linuxbrew,yumitsu/homebrew,scorphus/homebrew,reelsense/linuxbrew,benjaminfrank/homebrew,sometimesfood/homebrew,vigo/homebrew,influxdb/homebrew,liamstask/homebrew,muellermartin/homebrew,treyharris/homebrew,reelsense/homebrew,scpeters/homebrew,saketkc/linuxbrew,tschoonj/homebrew,nandub/homebrew,hakamadare/homebrew,muellermartin/homebrew,MartinDelille/homebrew,hongkongkiwi/homebrew,youtux/homebrew,LinusU/homebrew,pcottle/homebrew,bukzor/linuxbrew,dericed/homebrew,Red54/homebrew,elgertam/homebrew,DoomHammer/linuxbrew,filcab/homebrew,galaxy001/homebrew,sferik/homebrew,eighthave/homebrew,georgschoelly/homebrew,benjaminfrank/homebrew,eighthave/homebrew,base10/homebrew,frodeaa/homebrew,sferik/homebrew,dickeyxxx/homebrew,BrewTestBot/homebrew,slyphon/homebrew,liamstask/homebrew,yazuuchi/homebrew,joshfriend/homebrew,brunchboy/homebrew,emcrisostomo/homebrew,dericed/homebrew,michaKFromParis/homebrew-sparks,frodeaa/homebrew,youtux/homebrew,getgauge/homebrew,ablyler/homebrew,theeternalsw0rd/homebrew,mkrapp/homebrew,utzig/homebrew,LinusU/homebrew,dongcarl/homebrew,ebouaziz/linuxbrew,gnubila-france/linuxbrew,drewwells/homebrew,ablyler/homebrew,TaylorMonacelli/homebrew,galaxy001/homebrew,tutumcloud/homebrew,drewwells/homebrew,brunchboy/homebrew,slyphon/homebrew,ilovezfs/homebrew,dplarson/homebrew,ralic/homebrew,ilovezfs/homebrew,SteveClement/homebrew,LinusU/homebrew,apjanke/homebrew,drbenmorgan/linuxbrew,Homebrew/linuxbrew,totalvoidness/homebrew,sakra/homebrew,michaKFromParis/homebrew-sparks,slyphon/homebrew,esamson/homebrew,DoomHammer/linuxbrew,skinny-framework/homebrew,LinusU/homebrew,3van/homebrew,ablyler/homebrew,slyphon/homebrew,yazuuchi/homebrew,mobileoverlord/homebrew-1,marcwebbie/homebrew,SuperNEMO-DBD/cadfaelbrew,Angeldude/linuxbrew,pcottle/homebrew,apjanke/homebrew,treyharris/homebrew,muellermartin/homebrew,menivaitsi/homebrew,galaxy001/homebrew,dericed/homebrew,SteveClement/homebrew,Homebrew/homebrew,menivaitsi/homebrew,gnubila-france/linuxbrew,kodabb/homebrew,vigo/homebrew,royhodgman/homebrew,pcottle/homebrew,getgauge/homebrew,AlexejK/homebrew,keith/homebrew,josa42/homebrew,drbenmorgan/linuxbrew,cscetbon/homebrew,youtux/homebrew,cscetbon/homebrew,elgertam/homebrew,gawbul/homebrew,hanxue/homebrew,hongkongkiwi/homebrew,quantumsteve/homebrew,optikfluffel/homebrew,theeternalsw0rd/homebrew,jamer/homebrew,mobileoverlord/homebrew-1,Homebrew/homebrew,DoomHammer/linuxbrew,hanxue/homebrew,georgschoelly/homebrew,yumitsu/homebrew,dutchcoders/homebrew,marcwebbie/homebrew,dongcarl/homebrew,Homebrew/homebrew,hongkongkiwi/homebrew,filcab/homebrew,lrascao/homebrew,michaKFromParis/homebrew-sparks,gnubila-france/linuxbrew,ExtremeMan/homebrew,optikfluffel/homebrew,cprecioso/homebrew,yumitsu/homebrew