| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120 |
- // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
- // Use of this source code is governed by a MIT license found in the LICENSE file.
- // Code generated from mammoth-test.go.tmpl - DO NOT EDIT.
- package codec
- import "testing"
- import "fmt"
- import "reflect"
- // TestMammoth has all the different paths optimized in fast-path
- // It has all the primitives, slices and maps.
- //
- // For each of those types, it has a pointer and a non-pointer field.
- func init() { _ = fmt.Printf } // so we can include fmt as needed
- type TestMammoth struct {
- FIntf interface{}
- FptrIntf *interface{}
- FString string
- FptrString *string
- FFloat32 float32
- FptrFloat32 *float32
- FFloat64 float64
- FptrFloat64 *float64
- FUint uint
- FptrUint *uint
- FUint8 uint8
- FptrUint8 *uint8
- FUint16 uint16
- FptrUint16 *uint16
- FUint32 uint32
- FptrUint32 *uint32
- FUint64 uint64
- FptrUint64 *uint64
- FUintptr uintptr
- FptrUintptr *uintptr
- FInt int
- FptrInt *int
- FInt8 int8
- FptrInt8 *int8
- FInt16 int16
- FptrInt16 *int16
- FInt32 int32
- FptrInt32 *int32
- FInt64 int64
- FptrInt64 *int64
- FBool bool
- FptrBool *bool
- FSliceIntf []interface{}
- FptrSliceIntf *[]interface{}
- FSliceString []string
- FptrSliceString *[]string
- FSliceFloat32 []float32
- FptrSliceFloat32 *[]float32
- FSliceFloat64 []float64
- FptrSliceFloat64 *[]float64
- FSliceUint []uint
- FptrSliceUint *[]uint
- FSliceUint16 []uint16
- FptrSliceUint16 *[]uint16
- FSliceUint32 []uint32
- FptrSliceUint32 *[]uint32
- FSliceUint64 []uint64
- FptrSliceUint64 *[]uint64
- FSliceUintptr []uintptr
- FptrSliceUintptr *[]uintptr
- FSliceInt []int
- FptrSliceInt *[]int
- FSliceInt8 []int8
- FptrSliceInt8 *[]int8
- FSliceInt16 []int16
- FptrSliceInt16 *[]int16
- FSliceInt32 []int32
- FptrSliceInt32 *[]int32
- FSliceInt64 []int64
- FptrSliceInt64 *[]int64
- FSliceBool []bool
- FptrSliceBool *[]bool
- FMapIntfIntf map[interface{}]interface{}
- FptrMapIntfIntf *map[interface{}]interface{}
- FMapIntfString map[interface{}]string
- FptrMapIntfString *map[interface{}]string
- FMapIntfUint map[interface{}]uint
- FptrMapIntfUint *map[interface{}]uint
- FMapIntfUint8 map[interface{}]uint8
- FptrMapIntfUint8 *map[interface{}]uint8
- FMapIntfUint16 map[interface{}]uint16
- FptrMapIntfUint16 *map[interface{}]uint16
- FMapIntfUint32 map[interface{}]uint32
- FptrMapIntfUint32 *map[interface{}]uint32
- FMapIntfUint64 map[interface{}]uint64
- FptrMapIntfUint64 *map[interface{}]uint64
- FMapIntfUintptr map[interface{}]uintptr
- FptrMapIntfUintptr *map[interface{}]uintptr
- FMapIntfInt map[interface{}]int
- FptrMapIntfInt *map[interface{}]int
- FMapIntfInt8 map[interface{}]int8
- FptrMapIntfInt8 *map[interface{}]int8
- FMapIntfInt16 map[interface{}]int16
- FptrMapIntfInt16 *map[interface{}]int16
- FMapIntfInt32 map[interface{}]int32
- FptrMapIntfInt32 *map[interface{}]int32
- FMapIntfInt64 map[interface{}]int64
- FptrMapIntfInt64 *map[interface{}]int64
- FMapIntfFloat32 map[interface{}]float32
- FptrMapIntfFloat32 *map[interface{}]float32
- FMapIntfFloat64 map[interface{}]float64
- FptrMapIntfFloat64 *map[interface{}]float64
- FMapIntfBool map[interface{}]bool
- FptrMapIntfBool *map[interface{}]bool
- FMapStringIntf map[string]interface{}
- FptrMapStringIntf *map[string]interface{}
- FMapStringString map[string]string
- FptrMapStringString *map[string]string
- FMapStringUint map[string]uint
- FptrMapStringUint *map[string]uint
- FMapStringUint8 map[string]uint8
- FptrMapStringUint8 *map[string]uint8
- FMapStringUint16 map[string]uint16
- FptrMapStringUint16 *map[string]uint16
- FMapStringUint32 map[string]uint32
- FptrMapStringUint32 *map[string]uint32
- FMapStringUint64 map[string]uint64
- FptrMapStringUint64 *map[string]uint64
- FMapStringUintptr map[string]uintptr
- FptrMapStringUintptr *map[string]uintptr
- FMapStringInt map[string]int
- FptrMapStringInt *map[string]int
- FMapStringInt8 map[string]int8
- FptrMapStringInt8 *map[string]int8
- FMapStringInt16 map[string]int16
- FptrMapStringInt16 *map[string]int16
- FMapStringInt32 map[string]int32
- FptrMapStringInt32 *map[string]int32
- FMapStringInt64 map[string]int64
- FptrMapStringInt64 *map[string]int64
- FMapStringFloat32 map[string]float32
- FptrMapStringFloat32 *map[string]float32
- FMapStringFloat64 map[string]float64
- FptrMapStringFloat64 *map[string]float64
- FMapStringBool map[string]bool
- FptrMapStringBool *map[string]bool
- FMapFloat32Intf map[float32]interface{}
- FptrMapFloat32Intf *map[float32]interface{}
- FMapFloat32String map[float32]string
- FptrMapFloat32String *map[float32]string
- FMapFloat32Uint map[float32]uint
- FptrMapFloat32Uint *map[float32]uint
- FMapFloat32Uint8 map[float32]uint8
- FptrMapFloat32Uint8 *map[float32]uint8
- FMapFloat32Uint16 map[float32]uint16
- FptrMapFloat32Uint16 *map[float32]uint16
- FMapFloat32Uint32 map[float32]uint32
- FptrMapFloat32Uint32 *map[float32]uint32
- FMapFloat32Uint64 map[float32]uint64
- FptrMapFloat32Uint64 *map[float32]uint64
- FMapFloat32Uintptr map[float32]uintptr
- FptrMapFloat32Uintptr *map[float32]uintptr
- FMapFloat32Int map[float32]int
- FptrMapFloat32Int *map[float32]int
- FMapFloat32Int8 map[float32]int8
- FptrMapFloat32Int8 *map[float32]int8
- FMapFloat32Int16 map[float32]int16
- FptrMapFloat32Int16 *map[float32]int16
- FMapFloat32Int32 map[float32]int32
- FptrMapFloat32Int32 *map[float32]int32
- FMapFloat32Int64 map[float32]int64
- FptrMapFloat32Int64 *map[float32]int64
- FMapFloat32Float32 map[float32]float32
- FptrMapFloat32Float32 *map[float32]float32
- FMapFloat32Float64 map[float32]float64
- FptrMapFloat32Float64 *map[float32]float64
- FMapFloat32Bool map[float32]bool
- FptrMapFloat32Bool *map[float32]bool
- FMapFloat64Intf map[float64]interface{}
- FptrMapFloat64Intf *map[float64]interface{}
- FMapFloat64String map[float64]string
- FptrMapFloat64String *map[float64]string
- FMapFloat64Uint map[float64]uint
- FptrMapFloat64Uint *map[float64]uint
- FMapFloat64Uint8 map[float64]uint8
- FptrMapFloat64Uint8 *map[float64]uint8
- FMapFloat64Uint16 map[float64]uint16
- FptrMapFloat64Uint16 *map[float64]uint16
- FMapFloat64Uint32 map[float64]uint32
- FptrMapFloat64Uint32 *map[float64]uint32
- FMapFloat64Uint64 map[float64]uint64
- FptrMapFloat64Uint64 *map[float64]uint64
- FMapFloat64Uintptr map[float64]uintptr
- FptrMapFloat64Uintptr *map[float64]uintptr
- FMapFloat64Int map[float64]int
- FptrMapFloat64Int *map[float64]int
- FMapFloat64Int8 map[float64]int8
- FptrMapFloat64Int8 *map[float64]int8
- FMapFloat64Int16 map[float64]int16
- FptrMapFloat64Int16 *map[float64]int16
- FMapFloat64Int32 map[float64]int32
- FptrMapFloat64Int32 *map[float64]int32
- FMapFloat64Int64 map[float64]int64
- FptrMapFloat64Int64 *map[float64]int64
- FMapFloat64Float32 map[float64]float32
- FptrMapFloat64Float32 *map[float64]float32
- FMapFloat64Float64 map[float64]float64
- FptrMapFloat64Float64 *map[float64]float64
- FMapFloat64Bool map[float64]bool
- FptrMapFloat64Bool *map[float64]bool
- FMapUintIntf map[uint]interface{}
- FptrMapUintIntf *map[uint]interface{}
- FMapUintString map[uint]string
- FptrMapUintString *map[uint]string
- FMapUintUint map[uint]uint
- FptrMapUintUint *map[uint]uint
- FMapUintUint8 map[uint]uint8
- FptrMapUintUint8 *map[uint]uint8
- FMapUintUint16 map[uint]uint16
- FptrMapUintUint16 *map[uint]uint16
- FMapUintUint32 map[uint]uint32
- FptrMapUintUint32 *map[uint]uint32
- FMapUintUint64 map[uint]uint64
- FptrMapUintUint64 *map[uint]uint64
- FMapUintUintptr map[uint]uintptr
- FptrMapUintUintptr *map[uint]uintptr
- FMapUintInt map[uint]int
- FptrMapUintInt *map[uint]int
- FMapUintInt8 map[uint]int8
- FptrMapUintInt8 *map[uint]int8
- FMapUintInt16 map[uint]int16
- FptrMapUintInt16 *map[uint]int16
- FMapUintInt32 map[uint]int32
- FptrMapUintInt32 *map[uint]int32
- FMapUintInt64 map[uint]int64
- FptrMapUintInt64 *map[uint]int64
- FMapUintFloat32 map[uint]float32
- FptrMapUintFloat32 *map[uint]float32
- FMapUintFloat64 map[uint]float64
- FptrMapUintFloat64 *map[uint]float64
- FMapUintBool map[uint]bool
- FptrMapUintBool *map[uint]bool
- FMapUint8Intf map[uint8]interface{}
- FptrMapUint8Intf *map[uint8]interface{}
- FMapUint8String map[uint8]string
- FptrMapUint8String *map[uint8]string
- FMapUint8Uint map[uint8]uint
- FptrMapUint8Uint *map[uint8]uint
- FMapUint8Uint8 map[uint8]uint8
- FptrMapUint8Uint8 *map[uint8]uint8
- FMapUint8Uint16 map[uint8]uint16
- FptrMapUint8Uint16 *map[uint8]uint16
- FMapUint8Uint32 map[uint8]uint32
- FptrMapUint8Uint32 *map[uint8]uint32
- FMapUint8Uint64 map[uint8]uint64
- FptrMapUint8Uint64 *map[uint8]uint64
- FMapUint8Uintptr map[uint8]uintptr
- FptrMapUint8Uintptr *map[uint8]uintptr
- FMapUint8Int map[uint8]int
- FptrMapUint8Int *map[uint8]int
- FMapUint8Int8 map[uint8]int8
- FptrMapUint8Int8 *map[uint8]int8
- FMapUint8Int16 map[uint8]int16
- FptrMapUint8Int16 *map[uint8]int16
- FMapUint8Int32 map[uint8]int32
- FptrMapUint8Int32 *map[uint8]int32
- FMapUint8Int64 map[uint8]int64
- FptrMapUint8Int64 *map[uint8]int64
- FMapUint8Float32 map[uint8]float32
- FptrMapUint8Float32 *map[uint8]float32
- FMapUint8Float64 map[uint8]float64
- FptrMapUint8Float64 *map[uint8]float64
- FMapUint8Bool map[uint8]bool
- FptrMapUint8Bool *map[uint8]bool
- FMapUint16Intf map[uint16]interface{}
- FptrMapUint16Intf *map[uint16]interface{}
- FMapUint16String map[uint16]string
- FptrMapUint16String *map[uint16]string
- FMapUint16Uint map[uint16]uint
- FptrMapUint16Uint *map[uint16]uint
- FMapUint16Uint8 map[uint16]uint8
- FptrMapUint16Uint8 *map[uint16]uint8
- FMapUint16Uint16 map[uint16]uint16
- FptrMapUint16Uint16 *map[uint16]uint16
- FMapUint16Uint32 map[uint16]uint32
- FptrMapUint16Uint32 *map[uint16]uint32
- FMapUint16Uint64 map[uint16]uint64
- FptrMapUint16Uint64 *map[uint16]uint64
- FMapUint16Uintptr map[uint16]uintptr
- FptrMapUint16Uintptr *map[uint16]uintptr
- FMapUint16Int map[uint16]int
- FptrMapUint16Int *map[uint16]int
- FMapUint16Int8 map[uint16]int8
- FptrMapUint16Int8 *map[uint16]int8
- FMapUint16Int16 map[uint16]int16
- FptrMapUint16Int16 *map[uint16]int16
- FMapUint16Int32 map[uint16]int32
- FptrMapUint16Int32 *map[uint16]int32
- FMapUint16Int64 map[uint16]int64
- FptrMapUint16Int64 *map[uint16]int64
- FMapUint16Float32 map[uint16]float32
- FptrMapUint16Float32 *map[uint16]float32
- FMapUint16Float64 map[uint16]float64
- FptrMapUint16Float64 *map[uint16]float64
- FMapUint16Bool map[uint16]bool
- FptrMapUint16Bool *map[uint16]bool
- FMapUint32Intf map[uint32]interface{}
- FptrMapUint32Intf *map[uint32]interface{}
- FMapUint32String map[uint32]string
- FptrMapUint32String *map[uint32]string
- FMapUint32Uint map[uint32]uint
- FptrMapUint32Uint *map[uint32]uint
- FMapUint32Uint8 map[uint32]uint8
- FptrMapUint32Uint8 *map[uint32]uint8
- FMapUint32Uint16 map[uint32]uint16
- FptrMapUint32Uint16 *map[uint32]uint16
- FMapUint32Uint32 map[uint32]uint32
- FptrMapUint32Uint32 *map[uint32]uint32
- FMapUint32Uint64 map[uint32]uint64
- FptrMapUint32Uint64 *map[uint32]uint64
- FMapUint32Uintptr map[uint32]uintptr
- FptrMapUint32Uintptr *map[uint32]uintptr
- FMapUint32Int map[uint32]int
- FptrMapUint32Int *map[uint32]int
- FMapUint32Int8 map[uint32]int8
- FptrMapUint32Int8 *map[uint32]int8
- FMapUint32Int16 map[uint32]int16
- FptrMapUint32Int16 *map[uint32]int16
- FMapUint32Int32 map[uint32]int32
- FptrMapUint32Int32 *map[uint32]int32
- FMapUint32Int64 map[uint32]int64
- FptrMapUint32Int64 *map[uint32]int64
- FMapUint32Float32 map[uint32]float32
- FptrMapUint32Float32 *map[uint32]float32
- FMapUint32Float64 map[uint32]float64
- FptrMapUint32Float64 *map[uint32]float64
- FMapUint32Bool map[uint32]bool
- FptrMapUint32Bool *map[uint32]bool
- FMapUint64Intf map[uint64]interface{}
- FptrMapUint64Intf *map[uint64]interface{}
- FMapUint64String map[uint64]string
- FptrMapUint64String *map[uint64]string
- FMapUint64Uint map[uint64]uint
- FptrMapUint64Uint *map[uint64]uint
- FMapUint64Uint8 map[uint64]uint8
- FptrMapUint64Uint8 *map[uint64]uint8
- FMapUint64Uint16 map[uint64]uint16
- FptrMapUint64Uint16 *map[uint64]uint16
- FMapUint64Uint32 map[uint64]uint32
- FptrMapUint64Uint32 *map[uint64]uint32
- FMapUint64Uint64 map[uint64]uint64
- FptrMapUint64Uint64 *map[uint64]uint64
- FMapUint64Uintptr map[uint64]uintptr
- FptrMapUint64Uintptr *map[uint64]uintptr
- FMapUint64Int map[uint64]int
- FptrMapUint64Int *map[uint64]int
- FMapUint64Int8 map[uint64]int8
- FptrMapUint64Int8 *map[uint64]int8
- FMapUint64Int16 map[uint64]int16
- FptrMapUint64Int16 *map[uint64]int16
- FMapUint64Int32 map[uint64]int32
- FptrMapUint64Int32 *map[uint64]int32
- FMapUint64Int64 map[uint64]int64
- FptrMapUint64Int64 *map[uint64]int64
- FMapUint64Float32 map[uint64]float32
- FptrMapUint64Float32 *map[uint64]float32
- FMapUint64Float64 map[uint64]float64
- FptrMapUint64Float64 *map[uint64]float64
- FMapUint64Bool map[uint64]bool
- FptrMapUint64Bool *map[uint64]bool
- FMapUintptrIntf map[uintptr]interface{}
- FptrMapUintptrIntf *map[uintptr]interface{}
- FMapUintptrString map[uintptr]string
- FptrMapUintptrString *map[uintptr]string
- FMapUintptrUint map[uintptr]uint
- FptrMapUintptrUint *map[uintptr]uint
- FMapUintptrUint8 map[uintptr]uint8
- FptrMapUintptrUint8 *map[uintptr]uint8
- FMapUintptrUint16 map[uintptr]uint16
- FptrMapUintptrUint16 *map[uintptr]uint16
- FMapUintptrUint32 map[uintptr]uint32
- FptrMapUintptrUint32 *map[uintptr]uint32
- FMapUintptrUint64 map[uintptr]uint64
- FptrMapUintptrUint64 *map[uintptr]uint64
- FMapUintptrUintptr map[uintptr]uintptr
- FptrMapUintptrUintptr *map[uintptr]uintptr
- FMapUintptrInt map[uintptr]int
- FptrMapUintptrInt *map[uintptr]int
- FMapUintptrInt8 map[uintptr]int8
- FptrMapUintptrInt8 *map[uintptr]int8
- FMapUintptrInt16 map[uintptr]int16
- FptrMapUintptrInt16 *map[uintptr]int16
- FMapUintptrInt32 map[uintptr]int32
- FptrMapUintptrInt32 *map[uintptr]int32
- FMapUintptrInt64 map[uintptr]int64
- FptrMapUintptrInt64 *map[uintptr]int64
- FMapUintptrFloat32 map[uintptr]float32
- FptrMapUintptrFloat32 *map[uintptr]float32
- FMapUintptrFloat64 map[uintptr]float64
- FptrMapUintptrFloat64 *map[uintptr]float64
- FMapUintptrBool map[uintptr]bool
- FptrMapUintptrBool *map[uintptr]bool
- FMapIntIntf map[int]interface{}
- FptrMapIntIntf *map[int]interface{}
- FMapIntString map[int]string
- FptrMapIntString *map[int]string
- FMapIntUint map[int]uint
- FptrMapIntUint *map[int]uint
- FMapIntUint8 map[int]uint8
- FptrMapIntUint8 *map[int]uint8
- FMapIntUint16 map[int]uint16
- FptrMapIntUint16 *map[int]uint16
- FMapIntUint32 map[int]uint32
- FptrMapIntUint32 *map[int]uint32
- FMapIntUint64 map[int]uint64
- FptrMapIntUint64 *map[int]uint64
- FMapIntUintptr map[int]uintptr
- FptrMapIntUintptr *map[int]uintptr
- FMapIntInt map[int]int
- FptrMapIntInt *map[int]int
- FMapIntInt8 map[int]int8
- FptrMapIntInt8 *map[int]int8
- FMapIntInt16 map[int]int16
- FptrMapIntInt16 *map[int]int16
- FMapIntInt32 map[int]int32
- FptrMapIntInt32 *map[int]int32
- FMapIntInt64 map[int]int64
- FptrMapIntInt64 *map[int]int64
- FMapIntFloat32 map[int]float32
- FptrMapIntFloat32 *map[int]float32
- FMapIntFloat64 map[int]float64
- FptrMapIntFloat64 *map[int]float64
- FMapIntBool map[int]bool
- FptrMapIntBool *map[int]bool
- FMapInt8Intf map[int8]interface{}
- FptrMapInt8Intf *map[int8]interface{}
- FMapInt8String map[int8]string
- FptrMapInt8String *map[int8]string
- FMapInt8Uint map[int8]uint
- FptrMapInt8Uint *map[int8]uint
- FMapInt8Uint8 map[int8]uint8
- FptrMapInt8Uint8 *map[int8]uint8
- FMapInt8Uint16 map[int8]uint16
- FptrMapInt8Uint16 *map[int8]uint16
- FMapInt8Uint32 map[int8]uint32
- FptrMapInt8Uint32 *map[int8]uint32
- FMapInt8Uint64 map[int8]uint64
- FptrMapInt8Uint64 *map[int8]uint64
- FMapInt8Uintptr map[int8]uintptr
- FptrMapInt8Uintptr *map[int8]uintptr
- FMapInt8Int map[int8]int
- FptrMapInt8Int *map[int8]int
- FMapInt8Int8 map[int8]int8
- FptrMapInt8Int8 *map[int8]int8
- FMapInt8Int16 map[int8]int16
- FptrMapInt8Int16 *map[int8]int16
- FMapInt8Int32 map[int8]int32
- FptrMapInt8Int32 *map[int8]int32
- FMapInt8Int64 map[int8]int64
- FptrMapInt8Int64 *map[int8]int64
- FMapInt8Float32 map[int8]float32
- FptrMapInt8Float32 *map[int8]float32
- FMapInt8Float64 map[int8]float64
- FptrMapInt8Float64 *map[int8]float64
- FMapInt8Bool map[int8]bool
- FptrMapInt8Bool *map[int8]bool
- FMapInt16Intf map[int16]interface{}
- FptrMapInt16Intf *map[int16]interface{}
- FMapInt16String map[int16]string
- FptrMapInt16String *map[int16]string
- FMapInt16Uint map[int16]uint
- FptrMapInt16Uint *map[int16]uint
- FMapInt16Uint8 map[int16]uint8
- FptrMapInt16Uint8 *map[int16]uint8
- FMapInt16Uint16 map[int16]uint16
- FptrMapInt16Uint16 *map[int16]uint16
- FMapInt16Uint32 map[int16]uint32
- FptrMapInt16Uint32 *map[int16]uint32
- FMapInt16Uint64 map[int16]uint64
- FptrMapInt16Uint64 *map[int16]uint64
- FMapInt16Uintptr map[int16]uintptr
- FptrMapInt16Uintptr *map[int16]uintptr
- FMapInt16Int map[int16]int
- FptrMapInt16Int *map[int16]int
- FMapInt16Int8 map[int16]int8
- FptrMapInt16Int8 *map[int16]int8
- FMapInt16Int16 map[int16]int16
- FptrMapInt16Int16 *map[int16]int16
- FMapInt16Int32 map[int16]int32
- FptrMapInt16Int32 *map[int16]int32
- FMapInt16Int64 map[int16]int64
- FptrMapInt16Int64 *map[int16]int64
- FMapInt16Float32 map[int16]float32
- FptrMapInt16Float32 *map[int16]float32
- FMapInt16Float64 map[int16]float64
- FptrMapInt16Float64 *map[int16]float64
- FMapInt16Bool map[int16]bool
- FptrMapInt16Bool *map[int16]bool
- FMapInt32Intf map[int32]interface{}
- FptrMapInt32Intf *map[int32]interface{}
- FMapInt32String map[int32]string
- FptrMapInt32String *map[int32]string
- FMapInt32Uint map[int32]uint
- FptrMapInt32Uint *map[int32]uint
- FMapInt32Uint8 map[int32]uint8
- FptrMapInt32Uint8 *map[int32]uint8
- FMapInt32Uint16 map[int32]uint16
- FptrMapInt32Uint16 *map[int32]uint16
- FMapInt32Uint32 map[int32]uint32
- FptrMapInt32Uint32 *map[int32]uint32
- FMapInt32Uint64 map[int32]uint64
- FptrMapInt32Uint64 *map[int32]uint64
- FMapInt32Uintptr map[int32]uintptr
- FptrMapInt32Uintptr *map[int32]uintptr
- FMapInt32Int map[int32]int
- FptrMapInt32Int *map[int32]int
- FMapInt32Int8 map[int32]int8
- FptrMapInt32Int8 *map[int32]int8
- FMapInt32Int16 map[int32]int16
- FptrMapInt32Int16 *map[int32]int16
- FMapInt32Int32 map[int32]int32
- FptrMapInt32Int32 *map[int32]int32
- FMapInt32Int64 map[int32]int64
- FptrMapInt32Int64 *map[int32]int64
- FMapInt32Float32 map[int32]float32
- FptrMapInt32Float32 *map[int32]float32
- FMapInt32Float64 map[int32]float64
- FptrMapInt32Float64 *map[int32]float64
- FMapInt32Bool map[int32]bool
- FptrMapInt32Bool *map[int32]bool
- FMapInt64Intf map[int64]interface{}
- FptrMapInt64Intf *map[int64]interface{}
- FMapInt64String map[int64]string
- FptrMapInt64String *map[int64]string
- FMapInt64Uint map[int64]uint
- FptrMapInt64Uint *map[int64]uint
- FMapInt64Uint8 map[int64]uint8
- FptrMapInt64Uint8 *map[int64]uint8
- FMapInt64Uint16 map[int64]uint16
- FptrMapInt64Uint16 *map[int64]uint16
- FMapInt64Uint32 map[int64]uint32
- FptrMapInt64Uint32 *map[int64]uint32
- FMapInt64Uint64 map[int64]uint64
- FptrMapInt64Uint64 *map[int64]uint64
- FMapInt64Uintptr map[int64]uintptr
- FptrMapInt64Uintptr *map[int64]uintptr
- FMapInt64Int map[int64]int
- FptrMapInt64Int *map[int64]int
- FMapInt64Int8 map[int64]int8
- FptrMapInt64Int8 *map[int64]int8
- FMapInt64Int16 map[int64]int16
- FptrMapInt64Int16 *map[int64]int16
- FMapInt64Int32 map[int64]int32
- FptrMapInt64Int32 *map[int64]int32
- FMapInt64Int64 map[int64]int64
- FptrMapInt64Int64 *map[int64]int64
- FMapInt64Float32 map[int64]float32
- FptrMapInt64Float32 *map[int64]float32
- FMapInt64Float64 map[int64]float64
- FptrMapInt64Float64 *map[int64]float64
- FMapInt64Bool map[int64]bool
- FptrMapInt64Bool *map[int64]bool
- FMapBoolIntf map[bool]interface{}
- FptrMapBoolIntf *map[bool]interface{}
- FMapBoolString map[bool]string
- FptrMapBoolString *map[bool]string
- FMapBoolUint map[bool]uint
- FptrMapBoolUint *map[bool]uint
- FMapBoolUint8 map[bool]uint8
- FptrMapBoolUint8 *map[bool]uint8
- FMapBoolUint16 map[bool]uint16
- FptrMapBoolUint16 *map[bool]uint16
- FMapBoolUint32 map[bool]uint32
- FptrMapBoolUint32 *map[bool]uint32
- FMapBoolUint64 map[bool]uint64
- FptrMapBoolUint64 *map[bool]uint64
- FMapBoolUintptr map[bool]uintptr
- FptrMapBoolUintptr *map[bool]uintptr
- FMapBoolInt map[bool]int
- FptrMapBoolInt *map[bool]int
- FMapBoolInt8 map[bool]int8
- FptrMapBoolInt8 *map[bool]int8
- FMapBoolInt16 map[bool]int16
- FptrMapBoolInt16 *map[bool]int16
- FMapBoolInt32 map[bool]int32
- FptrMapBoolInt32 *map[bool]int32
- FMapBoolInt64 map[bool]int64
- FptrMapBoolInt64 *map[bool]int64
- FMapBoolFloat32 map[bool]float32
- FptrMapBoolFloat32 *map[bool]float32
- FMapBoolFloat64 map[bool]float64
- FptrMapBoolFloat64 *map[bool]float64
- FMapBoolBool map[bool]bool
- FptrMapBoolBool *map[bool]bool
- }
- type typMbsSliceIntf []interface{}
- func (_ typMbsSliceIntf) MapBySlice() {}
- type typMbsSliceString []string
- func (_ typMbsSliceString) MapBySlice() {}
- type typMbsSliceFloat32 []float32
- func (_ typMbsSliceFloat32) MapBySlice() {}
- type typMbsSliceFloat64 []float64
- func (_ typMbsSliceFloat64) MapBySlice() {}
- type typMbsSliceUint []uint
- func (_ typMbsSliceUint) MapBySlice() {}
- type typMbsSliceUint16 []uint16
- func (_ typMbsSliceUint16) MapBySlice() {}
- type typMbsSliceUint32 []uint32
- func (_ typMbsSliceUint32) MapBySlice() {}
- type typMbsSliceUint64 []uint64
- func (_ typMbsSliceUint64) MapBySlice() {}
- type typMbsSliceUintptr []uintptr
- func (_ typMbsSliceUintptr) MapBySlice() {}
- type typMbsSliceInt []int
- func (_ typMbsSliceInt) MapBySlice() {}
- type typMbsSliceInt8 []int8
- func (_ typMbsSliceInt8) MapBySlice() {}
- type typMbsSliceInt16 []int16
- func (_ typMbsSliceInt16) MapBySlice() {}
- type typMbsSliceInt32 []int32
- func (_ typMbsSliceInt32) MapBySlice() {}
- type typMbsSliceInt64 []int64
- func (_ typMbsSliceInt64) MapBySlice() {}
- type typMbsSliceBool []bool
- func (_ typMbsSliceBool) MapBySlice() {}
- type typMapMapIntfIntf map[interface{}]interface{}
- type typMapMapIntfString map[interface{}]string
- type typMapMapIntfUint map[interface{}]uint
- type typMapMapIntfUint8 map[interface{}]uint8
- type typMapMapIntfUint16 map[interface{}]uint16
- type typMapMapIntfUint32 map[interface{}]uint32
- type typMapMapIntfUint64 map[interface{}]uint64
- type typMapMapIntfUintptr map[interface{}]uintptr
- type typMapMapIntfInt map[interface{}]int
- type typMapMapIntfInt8 map[interface{}]int8
- type typMapMapIntfInt16 map[interface{}]int16
- type typMapMapIntfInt32 map[interface{}]int32
- type typMapMapIntfInt64 map[interface{}]int64
- type typMapMapIntfFloat32 map[interface{}]float32
- type typMapMapIntfFloat64 map[interface{}]float64
- type typMapMapIntfBool map[interface{}]bool
- type typMapMapStringIntf map[string]interface{}
- type typMapMapStringString map[string]string
- type typMapMapStringUint map[string]uint
- type typMapMapStringUint8 map[string]uint8
- type typMapMapStringUint16 map[string]uint16
- type typMapMapStringUint32 map[string]uint32
- type typMapMapStringUint64 map[string]uint64
- type typMapMapStringUintptr map[string]uintptr
- type typMapMapStringInt map[string]int
- type typMapMapStringInt8 map[string]int8
- type typMapMapStringInt16 map[string]int16
- type typMapMapStringInt32 map[string]int32
- type typMapMapStringInt64 map[string]int64
- type typMapMapStringFloat32 map[string]float32
- type typMapMapStringFloat64 map[string]float64
- type typMapMapStringBool map[string]bool
- type typMapMapFloat32Intf map[float32]interface{}
- type typMapMapFloat32String map[float32]string
- type typMapMapFloat32Uint map[float32]uint
- type typMapMapFloat32Uint8 map[float32]uint8
- type typMapMapFloat32Uint16 map[float32]uint16
- type typMapMapFloat32Uint32 map[float32]uint32
- type typMapMapFloat32Uint64 map[float32]uint64
- type typMapMapFloat32Uintptr map[float32]uintptr
- type typMapMapFloat32Int map[float32]int
- type typMapMapFloat32Int8 map[float32]int8
- type typMapMapFloat32Int16 map[float32]int16
- type typMapMapFloat32Int32 map[float32]int32
- type typMapMapFloat32Int64 map[float32]int64
- type typMapMapFloat32Float32 map[float32]float32
- type typMapMapFloat32Float64 map[float32]float64
- type typMapMapFloat32Bool map[float32]bool
- type typMapMapFloat64Intf map[float64]interface{}
- type typMapMapFloat64String map[float64]string
- type typMapMapFloat64Uint map[float64]uint
- type typMapMapFloat64Uint8 map[float64]uint8
- type typMapMapFloat64Uint16 map[float64]uint16
- type typMapMapFloat64Uint32 map[float64]uint32
- type typMapMapFloat64Uint64 map[float64]uint64
- type typMapMapFloat64Uintptr map[float64]uintptr
- type typMapMapFloat64Int map[float64]int
- type typMapMapFloat64Int8 map[float64]int8
- type typMapMapFloat64Int16 map[float64]int16
- type typMapMapFloat64Int32 map[float64]int32
- type typMapMapFloat64Int64 map[float64]int64
- type typMapMapFloat64Float32 map[float64]float32
- type typMapMapFloat64Float64 map[float64]float64
- type typMapMapFloat64Bool map[float64]bool
- type typMapMapUintIntf map[uint]interface{}
- type typMapMapUintString map[uint]string
- type typMapMapUintUint map[uint]uint
- type typMapMapUintUint8 map[uint]uint8
- type typMapMapUintUint16 map[uint]uint16
- type typMapMapUintUint32 map[uint]uint32
- type typMapMapUintUint64 map[uint]uint64
- type typMapMapUintUintptr map[uint]uintptr
- type typMapMapUintInt map[uint]int
- type typMapMapUintInt8 map[uint]int8
- type typMapMapUintInt16 map[uint]int16
- type typMapMapUintInt32 map[uint]int32
- type typMapMapUintInt64 map[uint]int64
- type typMapMapUintFloat32 map[uint]float32
- type typMapMapUintFloat64 map[uint]float64
- type typMapMapUintBool map[uint]bool
- type typMapMapUint8Intf map[uint8]interface{}
- type typMapMapUint8String map[uint8]string
- type typMapMapUint8Uint map[uint8]uint
- type typMapMapUint8Uint8 map[uint8]uint8
- type typMapMapUint8Uint16 map[uint8]uint16
- type typMapMapUint8Uint32 map[uint8]uint32
- type typMapMapUint8Uint64 map[uint8]uint64
- type typMapMapUint8Uintptr map[uint8]uintptr
- type typMapMapUint8Int map[uint8]int
- type typMapMapUint8Int8 map[uint8]int8
- type typMapMapUint8Int16 map[uint8]int16
- type typMapMapUint8Int32 map[uint8]int32
- type typMapMapUint8Int64 map[uint8]int64
- type typMapMapUint8Float32 map[uint8]float32
- type typMapMapUint8Float64 map[uint8]float64
- type typMapMapUint8Bool map[uint8]bool
- type typMapMapUint16Intf map[uint16]interface{}
- type typMapMapUint16String map[uint16]string
- type typMapMapUint16Uint map[uint16]uint
- type typMapMapUint16Uint8 map[uint16]uint8
- type typMapMapUint16Uint16 map[uint16]uint16
- type typMapMapUint16Uint32 map[uint16]uint32
- type typMapMapUint16Uint64 map[uint16]uint64
- type typMapMapUint16Uintptr map[uint16]uintptr
- type typMapMapUint16Int map[uint16]int
- type typMapMapUint16Int8 map[uint16]int8
- type typMapMapUint16Int16 map[uint16]int16
- type typMapMapUint16Int32 map[uint16]int32
- type typMapMapUint16Int64 map[uint16]int64
- type typMapMapUint16Float32 map[uint16]float32
- type typMapMapUint16Float64 map[uint16]float64
- type typMapMapUint16Bool map[uint16]bool
- type typMapMapUint32Intf map[uint32]interface{}
- type typMapMapUint32String map[uint32]string
- type typMapMapUint32Uint map[uint32]uint
- type typMapMapUint32Uint8 map[uint32]uint8
- type typMapMapUint32Uint16 map[uint32]uint16
- type typMapMapUint32Uint32 map[uint32]uint32
- type typMapMapUint32Uint64 map[uint32]uint64
- type typMapMapUint32Uintptr map[uint32]uintptr
- type typMapMapUint32Int map[uint32]int
- type typMapMapUint32Int8 map[uint32]int8
- type typMapMapUint32Int16 map[uint32]int16
- type typMapMapUint32Int32 map[uint32]int32
- type typMapMapUint32Int64 map[uint32]int64
- type typMapMapUint32Float32 map[uint32]float32
- type typMapMapUint32Float64 map[uint32]float64
- type typMapMapUint32Bool map[uint32]bool
- type typMapMapUint64Intf map[uint64]interface{}
- type typMapMapUint64String map[uint64]string
- type typMapMapUint64Uint map[uint64]uint
- type typMapMapUint64Uint8 map[uint64]uint8
- type typMapMapUint64Uint16 map[uint64]uint16
- type typMapMapUint64Uint32 map[uint64]uint32
- type typMapMapUint64Uint64 map[uint64]uint64
- type typMapMapUint64Uintptr map[uint64]uintptr
- type typMapMapUint64Int map[uint64]int
- type typMapMapUint64Int8 map[uint64]int8
- type typMapMapUint64Int16 map[uint64]int16
- type typMapMapUint64Int32 map[uint64]int32
- type typMapMapUint64Int64 map[uint64]int64
- type typMapMapUint64Float32 map[uint64]float32
- type typMapMapUint64Float64 map[uint64]float64
- type typMapMapUint64Bool map[uint64]bool
- type typMapMapUintptrIntf map[uintptr]interface{}
- type typMapMapUintptrString map[uintptr]string
- type typMapMapUintptrUint map[uintptr]uint
- type typMapMapUintptrUint8 map[uintptr]uint8
- type typMapMapUintptrUint16 map[uintptr]uint16
- type typMapMapUintptrUint32 map[uintptr]uint32
- type typMapMapUintptrUint64 map[uintptr]uint64
- type typMapMapUintptrUintptr map[uintptr]uintptr
- type typMapMapUintptrInt map[uintptr]int
- type typMapMapUintptrInt8 map[uintptr]int8
- type typMapMapUintptrInt16 map[uintptr]int16
- type typMapMapUintptrInt32 map[uintptr]int32
- type typMapMapUintptrInt64 map[uintptr]int64
- type typMapMapUintptrFloat32 map[uintptr]float32
- type typMapMapUintptrFloat64 map[uintptr]float64
- type typMapMapUintptrBool map[uintptr]bool
- type typMapMapIntIntf map[int]interface{}
- type typMapMapIntString map[int]string
- type typMapMapIntUint map[int]uint
- type typMapMapIntUint8 map[int]uint8
- type typMapMapIntUint16 map[int]uint16
- type typMapMapIntUint32 map[int]uint32
- type typMapMapIntUint64 map[int]uint64
- type typMapMapIntUintptr map[int]uintptr
- type typMapMapIntInt map[int]int
- type typMapMapIntInt8 map[int]int8
- type typMapMapIntInt16 map[int]int16
- type typMapMapIntInt32 map[int]int32
- type typMapMapIntInt64 map[int]int64
- type typMapMapIntFloat32 map[int]float32
- type typMapMapIntFloat64 map[int]float64
- type typMapMapIntBool map[int]bool
- type typMapMapInt8Intf map[int8]interface{}
- type typMapMapInt8String map[int8]string
- type typMapMapInt8Uint map[int8]uint
- type typMapMapInt8Uint8 map[int8]uint8
- type typMapMapInt8Uint16 map[int8]uint16
- type typMapMapInt8Uint32 map[int8]uint32
- type typMapMapInt8Uint64 map[int8]uint64
- type typMapMapInt8Uintptr map[int8]uintptr
- type typMapMapInt8Int map[int8]int
- type typMapMapInt8Int8 map[int8]int8
- type typMapMapInt8Int16 map[int8]int16
- type typMapMapInt8Int32 map[int8]int32
- type typMapMapInt8Int64 map[int8]int64
- type typMapMapInt8Float32 map[int8]float32
- type typMapMapInt8Float64 map[int8]float64
- type typMapMapInt8Bool map[int8]bool
- type typMapMapInt16Intf map[int16]interface{}
- type typMapMapInt16String map[int16]string
- type typMapMapInt16Uint map[int16]uint
- type typMapMapInt16Uint8 map[int16]uint8
- type typMapMapInt16Uint16 map[int16]uint16
- type typMapMapInt16Uint32 map[int16]uint32
- type typMapMapInt16Uint64 map[int16]uint64
- type typMapMapInt16Uintptr map[int16]uintptr
- type typMapMapInt16Int map[int16]int
- type typMapMapInt16Int8 map[int16]int8
- type typMapMapInt16Int16 map[int16]int16
- type typMapMapInt16Int32 map[int16]int32
- type typMapMapInt16Int64 map[int16]int64
- type typMapMapInt16Float32 map[int16]float32
- type typMapMapInt16Float64 map[int16]float64
- type typMapMapInt16Bool map[int16]bool
- type typMapMapInt32Intf map[int32]interface{}
- type typMapMapInt32String map[int32]string
- type typMapMapInt32Uint map[int32]uint
- type typMapMapInt32Uint8 map[int32]uint8
- type typMapMapInt32Uint16 map[int32]uint16
- type typMapMapInt32Uint32 map[int32]uint32
- type typMapMapInt32Uint64 map[int32]uint64
- type typMapMapInt32Uintptr map[int32]uintptr
- type typMapMapInt32Int map[int32]int
- type typMapMapInt32Int8 map[int32]int8
- type typMapMapInt32Int16 map[int32]int16
- type typMapMapInt32Int32 map[int32]int32
- type typMapMapInt32Int64 map[int32]int64
- type typMapMapInt32Float32 map[int32]float32
- type typMapMapInt32Float64 map[int32]float64
- type typMapMapInt32Bool map[int32]bool
- type typMapMapInt64Intf map[int64]interface{}
- type typMapMapInt64String map[int64]string
- type typMapMapInt64Uint map[int64]uint
- type typMapMapInt64Uint8 map[int64]uint8
- type typMapMapInt64Uint16 map[int64]uint16
- type typMapMapInt64Uint32 map[int64]uint32
- type typMapMapInt64Uint64 map[int64]uint64
- type typMapMapInt64Uintptr map[int64]uintptr
- type typMapMapInt64Int map[int64]int
- type typMapMapInt64Int8 map[int64]int8
- type typMapMapInt64Int16 map[int64]int16
- type typMapMapInt64Int32 map[int64]int32
- type typMapMapInt64Int64 map[int64]int64
- type typMapMapInt64Float32 map[int64]float32
- type typMapMapInt64Float64 map[int64]float64
- type typMapMapInt64Bool map[int64]bool
- type typMapMapBoolIntf map[bool]interface{}
- type typMapMapBoolString map[bool]string
- type typMapMapBoolUint map[bool]uint
- type typMapMapBoolUint8 map[bool]uint8
- type typMapMapBoolUint16 map[bool]uint16
- type typMapMapBoolUint32 map[bool]uint32
- type typMapMapBoolUint64 map[bool]uint64
- type typMapMapBoolUintptr map[bool]uintptr
- type typMapMapBoolInt map[bool]int
- type typMapMapBoolInt8 map[bool]int8
- type typMapMapBoolInt16 map[bool]int16
- type typMapMapBoolInt32 map[bool]int32
- type typMapMapBoolInt64 map[bool]int64
- type typMapMapBoolFloat32 map[bool]float32
- type typMapMapBoolFloat64 map[bool]float64
- type typMapMapBoolBool map[bool]bool
- func doTestMammothSlices(t *testing.T, h Handle) {
- var v1va [8]interface{}
- for _, v := range [][]interface{}{nil, {}, {"string-is-an-interface-2", nil, nil, "string-is-an-interface"}} {
- var v1v1, v1v2 []interface{}
- v1v1 = v
- bs1 := testMarshalErr(v1v1, h, t, "enc-slice-v1")
- if v == nil {
- v1v2 = nil
- } else {
- v1v2 = make([]interface{}, len(v))
- }
- testUnmarshalErr(v1v2, bs1, h, t, "dec-slice-v1")
- testDeepEqualErr(v1v1, v1v2, t, "equal-slice-v1")
- if v == nil {
- v1v2 = nil
- } else {
- v1v2 = make([]interface{}, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v1v2), bs1, h, t, "dec-slice-v1-noaddr") // non-addressable value
- testDeepEqualErr(v1v1, v1v2, t, "equal-slice-v1-noaddr")
- // ...
- bs1 = testMarshalErr(&v1v1, h, t, "enc-slice-v1-p")
- v1v2 = nil
- testUnmarshalErr(&v1v2, bs1, h, t, "dec-slice-v1-p")
- testDeepEqualErr(v1v1, v1v2, t, "equal-slice-v1-p")
- v1va = [8]interface{}{} // clear the array
- v1v2 = v1va[:1:1]
- testUnmarshalErr(&v1v2, bs1, h, t, "dec-slice-v1-p-1")
- testDeepEqualErr(v1v1, v1v2, t, "equal-slice-v1-p-1")
- v1va = [8]interface{}{} // clear the array
- v1v2 = v1va[:len(v1v1):len(v1v1)]
- testUnmarshalErr(&v1v2, bs1, h, t, "dec-slice-v1-p-len")
- testDeepEqualErr(v1v1, v1v2, t, "equal-slice-v1-p-len")
- v1va = [8]interface{}{} // clear the array
- v1v2 = v1va[:]
- testUnmarshalErr(&v1v2, bs1, h, t, "dec-slice-v1-p-cap")
- testDeepEqualErr(v1v1, v1v2, t, "equal-slice-v1-p-cap")
- if len(v1v1) > 1 {
- v1va = [8]interface{}{} // clear the array
- testUnmarshalErr((&v1va)[:len(v1v1)], bs1, h, t, "dec-slice-v1-p-len-noaddr")
- testDeepEqualErr(v1v1, v1va[:len(v1v1)], t, "equal-slice-v1-p-len-noaddr")
- v1va = [8]interface{}{} // clear the array
- testUnmarshalErr((&v1va)[:], bs1, h, t, "dec-slice-v1-p-cap-noaddr")
- testDeepEqualErr(v1v1, v1va[:len(v1v1)], t, "equal-slice-v1-p-cap-noaddr")
- }
- // ...
- var v1v3, v1v4 typMbsSliceIntf
- v1v2 = nil
- if v != nil {
- v1v2 = make([]interface{}, len(v))
- }
- v1v3 = typMbsSliceIntf(v1v1)
- v1v4 = typMbsSliceIntf(v1v2)
- bs1 = testMarshalErr(v1v3, h, t, "enc-slice-v1-custom")
- testUnmarshalErr(v1v4, bs1, h, t, "dec-slice-v1-custom")
- testDeepEqualErr(v1v3, v1v4, t, "equal-slice-v1-custom")
- bs1 = testMarshalErr(&v1v3, h, t, "enc-slice-v1-custom-p")
- v1v2 = nil
- v1v4 = typMbsSliceIntf(v1v2)
- testUnmarshalErr(&v1v4, bs1, h, t, "dec-slice-v1-custom-p")
- testDeepEqualErr(v1v3, v1v4, t, "equal-slice-v1-custom-p")
- }
- var v19va [8]string
- for _, v := range [][]string{nil, {}, {"some-string-2", "", "", "some-string"}} {
- var v19v1, v19v2 []string
- v19v1 = v
- bs19 := testMarshalErr(v19v1, h, t, "enc-slice-v19")
- if v == nil {
- v19v2 = nil
- } else {
- v19v2 = make([]string, len(v))
- }
- testUnmarshalErr(v19v2, bs19, h, t, "dec-slice-v19")
- testDeepEqualErr(v19v1, v19v2, t, "equal-slice-v19")
- if v == nil {
- v19v2 = nil
- } else {
- v19v2 = make([]string, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v19v2), bs19, h, t, "dec-slice-v19-noaddr") // non-addressable value
- testDeepEqualErr(v19v1, v19v2, t, "equal-slice-v19-noaddr")
- // ...
- bs19 = testMarshalErr(&v19v1, h, t, "enc-slice-v19-p")
- v19v2 = nil
- testUnmarshalErr(&v19v2, bs19, h, t, "dec-slice-v19-p")
- testDeepEqualErr(v19v1, v19v2, t, "equal-slice-v19-p")
- v19va = [8]string{} // clear the array
- v19v2 = v19va[:1:1]
- testUnmarshalErr(&v19v2, bs19, h, t, "dec-slice-v19-p-1")
- testDeepEqualErr(v19v1, v19v2, t, "equal-slice-v19-p-1")
- v19va = [8]string{} // clear the array
- v19v2 = v19va[:len(v19v1):len(v19v1)]
- testUnmarshalErr(&v19v2, bs19, h, t, "dec-slice-v19-p-len")
- testDeepEqualErr(v19v1, v19v2, t, "equal-slice-v19-p-len")
- v19va = [8]string{} // clear the array
- v19v2 = v19va[:]
- testUnmarshalErr(&v19v2, bs19, h, t, "dec-slice-v19-p-cap")
- testDeepEqualErr(v19v1, v19v2, t, "equal-slice-v19-p-cap")
- if len(v19v1) > 1 {
- v19va = [8]string{} // clear the array
- testUnmarshalErr((&v19va)[:len(v19v1)], bs19, h, t, "dec-slice-v19-p-len-noaddr")
- testDeepEqualErr(v19v1, v19va[:len(v19v1)], t, "equal-slice-v19-p-len-noaddr")
- v19va = [8]string{} // clear the array
- testUnmarshalErr((&v19va)[:], bs19, h, t, "dec-slice-v19-p-cap-noaddr")
- testDeepEqualErr(v19v1, v19va[:len(v19v1)], t, "equal-slice-v19-p-cap-noaddr")
- }
- // ...
- var v19v3, v19v4 typMbsSliceString
- v19v2 = nil
- if v != nil {
- v19v2 = make([]string, len(v))
- }
- v19v3 = typMbsSliceString(v19v1)
- v19v4 = typMbsSliceString(v19v2)
- bs19 = testMarshalErr(v19v3, h, t, "enc-slice-v19-custom")
- testUnmarshalErr(v19v4, bs19, h, t, "dec-slice-v19-custom")
- testDeepEqualErr(v19v3, v19v4, t, "equal-slice-v19-custom")
- bs19 = testMarshalErr(&v19v3, h, t, "enc-slice-v19-custom-p")
- v19v2 = nil
- v19v4 = typMbsSliceString(v19v2)
- testUnmarshalErr(&v19v4, bs19, h, t, "dec-slice-v19-custom-p")
- testDeepEqualErr(v19v3, v19v4, t, "equal-slice-v19-custom-p")
- }
- var v37va [8]float32
- for _, v := range [][]float32{nil, {}, {22.2, 0, 0, 11.1}} {
- var v37v1, v37v2 []float32
- v37v1 = v
- bs37 := testMarshalErr(v37v1, h, t, "enc-slice-v37")
- if v == nil {
- v37v2 = nil
- } else {
- v37v2 = make([]float32, len(v))
- }
- testUnmarshalErr(v37v2, bs37, h, t, "dec-slice-v37")
- testDeepEqualErr(v37v1, v37v2, t, "equal-slice-v37")
- if v == nil {
- v37v2 = nil
- } else {
- v37v2 = make([]float32, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v37v2), bs37, h, t, "dec-slice-v37-noaddr") // non-addressable value
- testDeepEqualErr(v37v1, v37v2, t, "equal-slice-v37-noaddr")
- // ...
- bs37 = testMarshalErr(&v37v1, h, t, "enc-slice-v37-p")
- v37v2 = nil
- testUnmarshalErr(&v37v2, bs37, h, t, "dec-slice-v37-p")
- testDeepEqualErr(v37v1, v37v2, t, "equal-slice-v37-p")
- v37va = [8]float32{} // clear the array
- v37v2 = v37va[:1:1]
- testUnmarshalErr(&v37v2, bs37, h, t, "dec-slice-v37-p-1")
- testDeepEqualErr(v37v1, v37v2, t, "equal-slice-v37-p-1")
- v37va = [8]float32{} // clear the array
- v37v2 = v37va[:len(v37v1):len(v37v1)]
- testUnmarshalErr(&v37v2, bs37, h, t, "dec-slice-v37-p-len")
- testDeepEqualErr(v37v1, v37v2, t, "equal-slice-v37-p-len")
- v37va = [8]float32{} // clear the array
- v37v2 = v37va[:]
- testUnmarshalErr(&v37v2, bs37, h, t, "dec-slice-v37-p-cap")
- testDeepEqualErr(v37v1, v37v2, t, "equal-slice-v37-p-cap")
- if len(v37v1) > 1 {
- v37va = [8]float32{} // clear the array
- testUnmarshalErr((&v37va)[:len(v37v1)], bs37, h, t, "dec-slice-v37-p-len-noaddr")
- testDeepEqualErr(v37v1, v37va[:len(v37v1)], t, "equal-slice-v37-p-len-noaddr")
- v37va = [8]float32{} // clear the array
- testUnmarshalErr((&v37va)[:], bs37, h, t, "dec-slice-v37-p-cap-noaddr")
- testDeepEqualErr(v37v1, v37va[:len(v37v1)], t, "equal-slice-v37-p-cap-noaddr")
- }
- // ...
- var v37v3, v37v4 typMbsSliceFloat32
- v37v2 = nil
- if v != nil {
- v37v2 = make([]float32, len(v))
- }
- v37v3 = typMbsSliceFloat32(v37v1)
- v37v4 = typMbsSliceFloat32(v37v2)
- bs37 = testMarshalErr(v37v3, h, t, "enc-slice-v37-custom")
- testUnmarshalErr(v37v4, bs37, h, t, "dec-slice-v37-custom")
- testDeepEqualErr(v37v3, v37v4, t, "equal-slice-v37-custom")
- bs37 = testMarshalErr(&v37v3, h, t, "enc-slice-v37-custom-p")
- v37v2 = nil
- v37v4 = typMbsSliceFloat32(v37v2)
- testUnmarshalErr(&v37v4, bs37, h, t, "dec-slice-v37-custom-p")
- testDeepEqualErr(v37v3, v37v4, t, "equal-slice-v37-custom-p")
- }
- var v55va [8]float64
- for _, v := range [][]float64{nil, {}, {22.2, 0, 0, 11.1}} {
- var v55v1, v55v2 []float64
- v55v1 = v
- bs55 := testMarshalErr(v55v1, h, t, "enc-slice-v55")
- if v == nil {
- v55v2 = nil
- } else {
- v55v2 = make([]float64, len(v))
- }
- testUnmarshalErr(v55v2, bs55, h, t, "dec-slice-v55")
- testDeepEqualErr(v55v1, v55v2, t, "equal-slice-v55")
- if v == nil {
- v55v2 = nil
- } else {
- v55v2 = make([]float64, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v55v2), bs55, h, t, "dec-slice-v55-noaddr") // non-addressable value
- testDeepEqualErr(v55v1, v55v2, t, "equal-slice-v55-noaddr")
- // ...
- bs55 = testMarshalErr(&v55v1, h, t, "enc-slice-v55-p")
- v55v2 = nil
- testUnmarshalErr(&v55v2, bs55, h, t, "dec-slice-v55-p")
- testDeepEqualErr(v55v1, v55v2, t, "equal-slice-v55-p")
- v55va = [8]float64{} // clear the array
- v55v2 = v55va[:1:1]
- testUnmarshalErr(&v55v2, bs55, h, t, "dec-slice-v55-p-1")
- testDeepEqualErr(v55v1, v55v2, t, "equal-slice-v55-p-1")
- v55va = [8]float64{} // clear the array
- v55v2 = v55va[:len(v55v1):len(v55v1)]
- testUnmarshalErr(&v55v2, bs55, h, t, "dec-slice-v55-p-len")
- testDeepEqualErr(v55v1, v55v2, t, "equal-slice-v55-p-len")
- v55va = [8]float64{} // clear the array
- v55v2 = v55va[:]
- testUnmarshalErr(&v55v2, bs55, h, t, "dec-slice-v55-p-cap")
- testDeepEqualErr(v55v1, v55v2, t, "equal-slice-v55-p-cap")
- if len(v55v1) > 1 {
- v55va = [8]float64{} // clear the array
- testUnmarshalErr((&v55va)[:len(v55v1)], bs55, h, t, "dec-slice-v55-p-len-noaddr")
- testDeepEqualErr(v55v1, v55va[:len(v55v1)], t, "equal-slice-v55-p-len-noaddr")
- v55va = [8]float64{} // clear the array
- testUnmarshalErr((&v55va)[:], bs55, h, t, "dec-slice-v55-p-cap-noaddr")
- testDeepEqualErr(v55v1, v55va[:len(v55v1)], t, "equal-slice-v55-p-cap-noaddr")
- }
- // ...
- var v55v3, v55v4 typMbsSliceFloat64
- v55v2 = nil
- if v != nil {
- v55v2 = make([]float64, len(v))
- }
- v55v3 = typMbsSliceFloat64(v55v1)
- v55v4 = typMbsSliceFloat64(v55v2)
- bs55 = testMarshalErr(v55v3, h, t, "enc-slice-v55-custom")
- testUnmarshalErr(v55v4, bs55, h, t, "dec-slice-v55-custom")
- testDeepEqualErr(v55v3, v55v4, t, "equal-slice-v55-custom")
- bs55 = testMarshalErr(&v55v3, h, t, "enc-slice-v55-custom-p")
- v55v2 = nil
- v55v4 = typMbsSliceFloat64(v55v2)
- testUnmarshalErr(&v55v4, bs55, h, t, "dec-slice-v55-custom-p")
- testDeepEqualErr(v55v3, v55v4, t, "equal-slice-v55-custom-p")
- }
- var v73va [8]uint
- for _, v := range [][]uint{nil, {}, {44, 0, 0, 33}} {
- var v73v1, v73v2 []uint
- v73v1 = v
- bs73 := testMarshalErr(v73v1, h, t, "enc-slice-v73")
- if v == nil {
- v73v2 = nil
- } else {
- v73v2 = make([]uint, len(v))
- }
- testUnmarshalErr(v73v2, bs73, h, t, "dec-slice-v73")
- testDeepEqualErr(v73v1, v73v2, t, "equal-slice-v73")
- if v == nil {
- v73v2 = nil
- } else {
- v73v2 = make([]uint, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v73v2), bs73, h, t, "dec-slice-v73-noaddr") // non-addressable value
- testDeepEqualErr(v73v1, v73v2, t, "equal-slice-v73-noaddr")
- // ...
- bs73 = testMarshalErr(&v73v1, h, t, "enc-slice-v73-p")
- v73v2 = nil
- testUnmarshalErr(&v73v2, bs73, h, t, "dec-slice-v73-p")
- testDeepEqualErr(v73v1, v73v2, t, "equal-slice-v73-p")
- v73va = [8]uint{} // clear the array
- v73v2 = v73va[:1:1]
- testUnmarshalErr(&v73v2, bs73, h, t, "dec-slice-v73-p-1")
- testDeepEqualErr(v73v1, v73v2, t, "equal-slice-v73-p-1")
- v73va = [8]uint{} // clear the array
- v73v2 = v73va[:len(v73v1):len(v73v1)]
- testUnmarshalErr(&v73v2, bs73, h, t, "dec-slice-v73-p-len")
- testDeepEqualErr(v73v1, v73v2, t, "equal-slice-v73-p-len")
- v73va = [8]uint{} // clear the array
- v73v2 = v73va[:]
- testUnmarshalErr(&v73v2, bs73, h, t, "dec-slice-v73-p-cap")
- testDeepEqualErr(v73v1, v73v2, t, "equal-slice-v73-p-cap")
- if len(v73v1) > 1 {
- v73va = [8]uint{} // clear the array
- testUnmarshalErr((&v73va)[:len(v73v1)], bs73, h, t, "dec-slice-v73-p-len-noaddr")
- testDeepEqualErr(v73v1, v73va[:len(v73v1)], t, "equal-slice-v73-p-len-noaddr")
- v73va = [8]uint{} // clear the array
- testUnmarshalErr((&v73va)[:], bs73, h, t, "dec-slice-v73-p-cap-noaddr")
- testDeepEqualErr(v73v1, v73va[:len(v73v1)], t, "equal-slice-v73-p-cap-noaddr")
- }
- // ...
- var v73v3, v73v4 typMbsSliceUint
- v73v2 = nil
- if v != nil {
- v73v2 = make([]uint, len(v))
- }
- v73v3 = typMbsSliceUint(v73v1)
- v73v4 = typMbsSliceUint(v73v2)
- bs73 = testMarshalErr(v73v3, h, t, "enc-slice-v73-custom")
- testUnmarshalErr(v73v4, bs73, h, t, "dec-slice-v73-custom")
- testDeepEqualErr(v73v3, v73v4, t, "equal-slice-v73-custom")
- bs73 = testMarshalErr(&v73v3, h, t, "enc-slice-v73-custom-p")
- v73v2 = nil
- v73v4 = typMbsSliceUint(v73v2)
- testUnmarshalErr(&v73v4, bs73, h, t, "dec-slice-v73-custom-p")
- testDeepEqualErr(v73v3, v73v4, t, "equal-slice-v73-custom-p")
- }
- var v108va [8]uint16
- for _, v := range [][]uint16{nil, {}, {44, 0, 0, 33}} {
- var v108v1, v108v2 []uint16
- v108v1 = v
- bs108 := testMarshalErr(v108v1, h, t, "enc-slice-v108")
- if v == nil {
- v108v2 = nil
- } else {
- v108v2 = make([]uint16, len(v))
- }
- testUnmarshalErr(v108v2, bs108, h, t, "dec-slice-v108")
- testDeepEqualErr(v108v1, v108v2, t, "equal-slice-v108")
- if v == nil {
- v108v2 = nil
- } else {
- v108v2 = make([]uint16, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v108v2), bs108, h, t, "dec-slice-v108-noaddr") // non-addressable value
- testDeepEqualErr(v108v1, v108v2, t, "equal-slice-v108-noaddr")
- // ...
- bs108 = testMarshalErr(&v108v1, h, t, "enc-slice-v108-p")
- v108v2 = nil
- testUnmarshalErr(&v108v2, bs108, h, t, "dec-slice-v108-p")
- testDeepEqualErr(v108v1, v108v2, t, "equal-slice-v108-p")
- v108va = [8]uint16{} // clear the array
- v108v2 = v108va[:1:1]
- testUnmarshalErr(&v108v2, bs108, h, t, "dec-slice-v108-p-1")
- testDeepEqualErr(v108v1, v108v2, t, "equal-slice-v108-p-1")
- v108va = [8]uint16{} // clear the array
- v108v2 = v108va[:len(v108v1):len(v108v1)]
- testUnmarshalErr(&v108v2, bs108, h, t, "dec-slice-v108-p-len")
- testDeepEqualErr(v108v1, v108v2, t, "equal-slice-v108-p-len")
- v108va = [8]uint16{} // clear the array
- v108v2 = v108va[:]
- testUnmarshalErr(&v108v2, bs108, h, t, "dec-slice-v108-p-cap")
- testDeepEqualErr(v108v1, v108v2, t, "equal-slice-v108-p-cap")
- if len(v108v1) > 1 {
- v108va = [8]uint16{} // clear the array
- testUnmarshalErr((&v108va)[:len(v108v1)], bs108, h, t, "dec-slice-v108-p-len-noaddr")
- testDeepEqualErr(v108v1, v108va[:len(v108v1)], t, "equal-slice-v108-p-len-noaddr")
- v108va = [8]uint16{} // clear the array
- testUnmarshalErr((&v108va)[:], bs108, h, t, "dec-slice-v108-p-cap-noaddr")
- testDeepEqualErr(v108v1, v108va[:len(v108v1)], t, "equal-slice-v108-p-cap-noaddr")
- }
- // ...
- var v108v3, v108v4 typMbsSliceUint16
- v108v2 = nil
- if v != nil {
- v108v2 = make([]uint16, len(v))
- }
- v108v3 = typMbsSliceUint16(v108v1)
- v108v4 = typMbsSliceUint16(v108v2)
- bs108 = testMarshalErr(v108v3, h, t, "enc-slice-v108-custom")
- testUnmarshalErr(v108v4, bs108, h, t, "dec-slice-v108-custom")
- testDeepEqualErr(v108v3, v108v4, t, "equal-slice-v108-custom")
- bs108 = testMarshalErr(&v108v3, h, t, "enc-slice-v108-custom-p")
- v108v2 = nil
- v108v4 = typMbsSliceUint16(v108v2)
- testUnmarshalErr(&v108v4, bs108, h, t, "dec-slice-v108-custom-p")
- testDeepEqualErr(v108v3, v108v4, t, "equal-slice-v108-custom-p")
- }
- var v126va [8]uint32
- for _, v := range [][]uint32{nil, {}, {44, 0, 0, 33}} {
- var v126v1, v126v2 []uint32
- v126v1 = v
- bs126 := testMarshalErr(v126v1, h, t, "enc-slice-v126")
- if v == nil {
- v126v2 = nil
- } else {
- v126v2 = make([]uint32, len(v))
- }
- testUnmarshalErr(v126v2, bs126, h, t, "dec-slice-v126")
- testDeepEqualErr(v126v1, v126v2, t, "equal-slice-v126")
- if v == nil {
- v126v2 = nil
- } else {
- v126v2 = make([]uint32, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v126v2), bs126, h, t, "dec-slice-v126-noaddr") // non-addressable value
- testDeepEqualErr(v126v1, v126v2, t, "equal-slice-v126-noaddr")
- // ...
- bs126 = testMarshalErr(&v126v1, h, t, "enc-slice-v126-p")
- v126v2 = nil
- testUnmarshalErr(&v126v2, bs126, h, t, "dec-slice-v126-p")
- testDeepEqualErr(v126v1, v126v2, t, "equal-slice-v126-p")
- v126va = [8]uint32{} // clear the array
- v126v2 = v126va[:1:1]
- testUnmarshalErr(&v126v2, bs126, h, t, "dec-slice-v126-p-1")
- testDeepEqualErr(v126v1, v126v2, t, "equal-slice-v126-p-1")
- v126va = [8]uint32{} // clear the array
- v126v2 = v126va[:len(v126v1):len(v126v1)]
- testUnmarshalErr(&v126v2, bs126, h, t, "dec-slice-v126-p-len")
- testDeepEqualErr(v126v1, v126v2, t, "equal-slice-v126-p-len")
- v126va = [8]uint32{} // clear the array
- v126v2 = v126va[:]
- testUnmarshalErr(&v126v2, bs126, h, t, "dec-slice-v126-p-cap")
- testDeepEqualErr(v126v1, v126v2, t, "equal-slice-v126-p-cap")
- if len(v126v1) > 1 {
- v126va = [8]uint32{} // clear the array
- testUnmarshalErr((&v126va)[:len(v126v1)], bs126, h, t, "dec-slice-v126-p-len-noaddr")
- testDeepEqualErr(v126v1, v126va[:len(v126v1)], t, "equal-slice-v126-p-len-noaddr")
- v126va = [8]uint32{} // clear the array
- testUnmarshalErr((&v126va)[:], bs126, h, t, "dec-slice-v126-p-cap-noaddr")
- testDeepEqualErr(v126v1, v126va[:len(v126v1)], t, "equal-slice-v126-p-cap-noaddr")
- }
- // ...
- var v126v3, v126v4 typMbsSliceUint32
- v126v2 = nil
- if v != nil {
- v126v2 = make([]uint32, len(v))
- }
- v126v3 = typMbsSliceUint32(v126v1)
- v126v4 = typMbsSliceUint32(v126v2)
- bs126 = testMarshalErr(v126v3, h, t, "enc-slice-v126-custom")
- testUnmarshalErr(v126v4, bs126, h, t, "dec-slice-v126-custom")
- testDeepEqualErr(v126v3, v126v4, t, "equal-slice-v126-custom")
- bs126 = testMarshalErr(&v126v3, h, t, "enc-slice-v126-custom-p")
- v126v2 = nil
- v126v4 = typMbsSliceUint32(v126v2)
- testUnmarshalErr(&v126v4, bs126, h, t, "dec-slice-v126-custom-p")
- testDeepEqualErr(v126v3, v126v4, t, "equal-slice-v126-custom-p")
- }
- var v144va [8]uint64
- for _, v := range [][]uint64{nil, {}, {44, 0, 0, 33}} {
- var v144v1, v144v2 []uint64
- v144v1 = v
- bs144 := testMarshalErr(v144v1, h, t, "enc-slice-v144")
- if v == nil {
- v144v2 = nil
- } else {
- v144v2 = make([]uint64, len(v))
- }
- testUnmarshalErr(v144v2, bs144, h, t, "dec-slice-v144")
- testDeepEqualErr(v144v1, v144v2, t, "equal-slice-v144")
- if v == nil {
- v144v2 = nil
- } else {
- v144v2 = make([]uint64, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v144v2), bs144, h, t, "dec-slice-v144-noaddr") // non-addressable value
- testDeepEqualErr(v144v1, v144v2, t, "equal-slice-v144-noaddr")
- // ...
- bs144 = testMarshalErr(&v144v1, h, t, "enc-slice-v144-p")
- v144v2 = nil
- testUnmarshalErr(&v144v2, bs144, h, t, "dec-slice-v144-p")
- testDeepEqualErr(v144v1, v144v2, t, "equal-slice-v144-p")
- v144va = [8]uint64{} // clear the array
- v144v2 = v144va[:1:1]
- testUnmarshalErr(&v144v2, bs144, h, t, "dec-slice-v144-p-1")
- testDeepEqualErr(v144v1, v144v2, t, "equal-slice-v144-p-1")
- v144va = [8]uint64{} // clear the array
- v144v2 = v144va[:len(v144v1):len(v144v1)]
- testUnmarshalErr(&v144v2, bs144, h, t, "dec-slice-v144-p-len")
- testDeepEqualErr(v144v1, v144v2, t, "equal-slice-v144-p-len")
- v144va = [8]uint64{} // clear the array
- v144v2 = v144va[:]
- testUnmarshalErr(&v144v2, bs144, h, t, "dec-slice-v144-p-cap")
- testDeepEqualErr(v144v1, v144v2, t, "equal-slice-v144-p-cap")
- if len(v144v1) > 1 {
- v144va = [8]uint64{} // clear the array
- testUnmarshalErr((&v144va)[:len(v144v1)], bs144, h, t, "dec-slice-v144-p-len-noaddr")
- testDeepEqualErr(v144v1, v144va[:len(v144v1)], t, "equal-slice-v144-p-len-noaddr")
- v144va = [8]uint64{} // clear the array
- testUnmarshalErr((&v144va)[:], bs144, h, t, "dec-slice-v144-p-cap-noaddr")
- testDeepEqualErr(v144v1, v144va[:len(v144v1)], t, "equal-slice-v144-p-cap-noaddr")
- }
- // ...
- var v144v3, v144v4 typMbsSliceUint64
- v144v2 = nil
- if v != nil {
- v144v2 = make([]uint64, len(v))
- }
- v144v3 = typMbsSliceUint64(v144v1)
- v144v4 = typMbsSliceUint64(v144v2)
- bs144 = testMarshalErr(v144v3, h, t, "enc-slice-v144-custom")
- testUnmarshalErr(v144v4, bs144, h, t, "dec-slice-v144-custom")
- testDeepEqualErr(v144v3, v144v4, t, "equal-slice-v144-custom")
- bs144 = testMarshalErr(&v144v3, h, t, "enc-slice-v144-custom-p")
- v144v2 = nil
- v144v4 = typMbsSliceUint64(v144v2)
- testUnmarshalErr(&v144v4, bs144, h, t, "dec-slice-v144-custom-p")
- testDeepEqualErr(v144v3, v144v4, t, "equal-slice-v144-custom-p")
- }
- var v162va [8]uintptr
- for _, v := range [][]uintptr{nil, {}, {44, 0, 0, 33}} {
- var v162v1, v162v2 []uintptr
- v162v1 = v
- bs162 := testMarshalErr(v162v1, h, t, "enc-slice-v162")
- if v == nil {
- v162v2 = nil
- } else {
- v162v2 = make([]uintptr, len(v))
- }
- testUnmarshalErr(v162v2, bs162, h, t, "dec-slice-v162")
- testDeepEqualErr(v162v1, v162v2, t, "equal-slice-v162")
- if v == nil {
- v162v2 = nil
- } else {
- v162v2 = make([]uintptr, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v162v2), bs162, h, t, "dec-slice-v162-noaddr") // non-addressable value
- testDeepEqualErr(v162v1, v162v2, t, "equal-slice-v162-noaddr")
- // ...
- bs162 = testMarshalErr(&v162v1, h, t, "enc-slice-v162-p")
- v162v2 = nil
- testUnmarshalErr(&v162v2, bs162, h, t, "dec-slice-v162-p")
- testDeepEqualErr(v162v1, v162v2, t, "equal-slice-v162-p")
- v162va = [8]uintptr{} // clear the array
- v162v2 = v162va[:1:1]
- testUnmarshalErr(&v162v2, bs162, h, t, "dec-slice-v162-p-1")
- testDeepEqualErr(v162v1, v162v2, t, "equal-slice-v162-p-1")
- v162va = [8]uintptr{} // clear the array
- v162v2 = v162va[:len(v162v1):len(v162v1)]
- testUnmarshalErr(&v162v2, bs162, h, t, "dec-slice-v162-p-len")
- testDeepEqualErr(v162v1, v162v2, t, "equal-slice-v162-p-len")
- v162va = [8]uintptr{} // clear the array
- v162v2 = v162va[:]
- testUnmarshalErr(&v162v2, bs162, h, t, "dec-slice-v162-p-cap")
- testDeepEqualErr(v162v1, v162v2, t, "equal-slice-v162-p-cap")
- if len(v162v1) > 1 {
- v162va = [8]uintptr{} // clear the array
- testUnmarshalErr((&v162va)[:len(v162v1)], bs162, h, t, "dec-slice-v162-p-len-noaddr")
- testDeepEqualErr(v162v1, v162va[:len(v162v1)], t, "equal-slice-v162-p-len-noaddr")
- v162va = [8]uintptr{} // clear the array
- testUnmarshalErr((&v162va)[:], bs162, h, t, "dec-slice-v162-p-cap-noaddr")
- testDeepEqualErr(v162v1, v162va[:len(v162v1)], t, "equal-slice-v162-p-cap-noaddr")
- }
- // ...
- var v162v3, v162v4 typMbsSliceUintptr
- v162v2 = nil
- if v != nil {
- v162v2 = make([]uintptr, len(v))
- }
- v162v3 = typMbsSliceUintptr(v162v1)
- v162v4 = typMbsSliceUintptr(v162v2)
- bs162 = testMarshalErr(v162v3, h, t, "enc-slice-v162-custom")
- testUnmarshalErr(v162v4, bs162, h, t, "dec-slice-v162-custom")
- testDeepEqualErr(v162v3, v162v4, t, "equal-slice-v162-custom")
- bs162 = testMarshalErr(&v162v3, h, t, "enc-slice-v162-custom-p")
- v162v2 = nil
- v162v4 = typMbsSliceUintptr(v162v2)
- testUnmarshalErr(&v162v4, bs162, h, t, "dec-slice-v162-custom-p")
- testDeepEqualErr(v162v3, v162v4, t, "equal-slice-v162-custom-p")
- }
- var v180va [8]int
- for _, v := range [][]int{nil, {}, {44, 0, 0, 33}} {
- var v180v1, v180v2 []int
- v180v1 = v
- bs180 := testMarshalErr(v180v1, h, t, "enc-slice-v180")
- if v == nil {
- v180v2 = nil
- } else {
- v180v2 = make([]int, len(v))
- }
- testUnmarshalErr(v180v2, bs180, h, t, "dec-slice-v180")
- testDeepEqualErr(v180v1, v180v2, t, "equal-slice-v180")
- if v == nil {
- v180v2 = nil
- } else {
- v180v2 = make([]int, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v180v2), bs180, h, t, "dec-slice-v180-noaddr") // non-addressable value
- testDeepEqualErr(v180v1, v180v2, t, "equal-slice-v180-noaddr")
- // ...
- bs180 = testMarshalErr(&v180v1, h, t, "enc-slice-v180-p")
- v180v2 = nil
- testUnmarshalErr(&v180v2, bs180, h, t, "dec-slice-v180-p")
- testDeepEqualErr(v180v1, v180v2, t, "equal-slice-v180-p")
- v180va = [8]int{} // clear the array
- v180v2 = v180va[:1:1]
- testUnmarshalErr(&v180v2, bs180, h, t, "dec-slice-v180-p-1")
- testDeepEqualErr(v180v1, v180v2, t, "equal-slice-v180-p-1")
- v180va = [8]int{} // clear the array
- v180v2 = v180va[:len(v180v1):len(v180v1)]
- testUnmarshalErr(&v180v2, bs180, h, t, "dec-slice-v180-p-len")
- testDeepEqualErr(v180v1, v180v2, t, "equal-slice-v180-p-len")
- v180va = [8]int{} // clear the array
- v180v2 = v180va[:]
- testUnmarshalErr(&v180v2, bs180, h, t, "dec-slice-v180-p-cap")
- testDeepEqualErr(v180v1, v180v2, t, "equal-slice-v180-p-cap")
- if len(v180v1) > 1 {
- v180va = [8]int{} // clear the array
- testUnmarshalErr((&v180va)[:len(v180v1)], bs180, h, t, "dec-slice-v180-p-len-noaddr")
- testDeepEqualErr(v180v1, v180va[:len(v180v1)], t, "equal-slice-v180-p-len-noaddr")
- v180va = [8]int{} // clear the array
- testUnmarshalErr((&v180va)[:], bs180, h, t, "dec-slice-v180-p-cap-noaddr")
- testDeepEqualErr(v180v1, v180va[:len(v180v1)], t, "equal-slice-v180-p-cap-noaddr")
- }
- // ...
- var v180v3, v180v4 typMbsSliceInt
- v180v2 = nil
- if v != nil {
- v180v2 = make([]int, len(v))
- }
- v180v3 = typMbsSliceInt(v180v1)
- v180v4 = typMbsSliceInt(v180v2)
- bs180 = testMarshalErr(v180v3, h, t, "enc-slice-v180-custom")
- testUnmarshalErr(v180v4, bs180, h, t, "dec-slice-v180-custom")
- testDeepEqualErr(v180v3, v180v4, t, "equal-slice-v180-custom")
- bs180 = testMarshalErr(&v180v3, h, t, "enc-slice-v180-custom-p")
- v180v2 = nil
- v180v4 = typMbsSliceInt(v180v2)
- testUnmarshalErr(&v180v4, bs180, h, t, "dec-slice-v180-custom-p")
- testDeepEqualErr(v180v3, v180v4, t, "equal-slice-v180-custom-p")
- }
- var v198va [8]int8
- for _, v := range [][]int8{nil, {}, {44, 0, 0, 33}} {
- var v198v1, v198v2 []int8
- v198v1 = v
- bs198 := testMarshalErr(v198v1, h, t, "enc-slice-v198")
- if v == nil {
- v198v2 = nil
- } else {
- v198v2 = make([]int8, len(v))
- }
- testUnmarshalErr(v198v2, bs198, h, t, "dec-slice-v198")
- testDeepEqualErr(v198v1, v198v2, t, "equal-slice-v198")
- if v == nil {
- v198v2 = nil
- } else {
- v198v2 = make([]int8, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v198v2), bs198, h, t, "dec-slice-v198-noaddr") // non-addressable value
- testDeepEqualErr(v198v1, v198v2, t, "equal-slice-v198-noaddr")
- // ...
- bs198 = testMarshalErr(&v198v1, h, t, "enc-slice-v198-p")
- v198v2 = nil
- testUnmarshalErr(&v198v2, bs198, h, t, "dec-slice-v198-p")
- testDeepEqualErr(v198v1, v198v2, t, "equal-slice-v198-p")
- v198va = [8]int8{} // clear the array
- v198v2 = v198va[:1:1]
- testUnmarshalErr(&v198v2, bs198, h, t, "dec-slice-v198-p-1")
- testDeepEqualErr(v198v1, v198v2, t, "equal-slice-v198-p-1")
- v198va = [8]int8{} // clear the array
- v198v2 = v198va[:len(v198v1):len(v198v1)]
- testUnmarshalErr(&v198v2, bs198, h, t, "dec-slice-v198-p-len")
- testDeepEqualErr(v198v1, v198v2, t, "equal-slice-v198-p-len")
- v198va = [8]int8{} // clear the array
- v198v2 = v198va[:]
- testUnmarshalErr(&v198v2, bs198, h, t, "dec-slice-v198-p-cap")
- testDeepEqualErr(v198v1, v198v2, t, "equal-slice-v198-p-cap")
- if len(v198v1) > 1 {
- v198va = [8]int8{} // clear the array
- testUnmarshalErr((&v198va)[:len(v198v1)], bs198, h, t, "dec-slice-v198-p-len-noaddr")
- testDeepEqualErr(v198v1, v198va[:len(v198v1)], t, "equal-slice-v198-p-len-noaddr")
- v198va = [8]int8{} // clear the array
- testUnmarshalErr((&v198va)[:], bs198, h, t, "dec-slice-v198-p-cap-noaddr")
- testDeepEqualErr(v198v1, v198va[:len(v198v1)], t, "equal-slice-v198-p-cap-noaddr")
- }
- // ...
- var v198v3, v198v4 typMbsSliceInt8
- v198v2 = nil
- if v != nil {
- v198v2 = make([]int8, len(v))
- }
- v198v3 = typMbsSliceInt8(v198v1)
- v198v4 = typMbsSliceInt8(v198v2)
- bs198 = testMarshalErr(v198v3, h, t, "enc-slice-v198-custom")
- testUnmarshalErr(v198v4, bs198, h, t, "dec-slice-v198-custom")
- testDeepEqualErr(v198v3, v198v4, t, "equal-slice-v198-custom")
- bs198 = testMarshalErr(&v198v3, h, t, "enc-slice-v198-custom-p")
- v198v2 = nil
- v198v4 = typMbsSliceInt8(v198v2)
- testUnmarshalErr(&v198v4, bs198, h, t, "dec-slice-v198-custom-p")
- testDeepEqualErr(v198v3, v198v4, t, "equal-slice-v198-custom-p")
- }
- var v216va [8]int16
- for _, v := range [][]int16{nil, {}, {44, 0, 0, 33}} {
- var v216v1, v216v2 []int16
- v216v1 = v
- bs216 := testMarshalErr(v216v1, h, t, "enc-slice-v216")
- if v == nil {
- v216v2 = nil
- } else {
- v216v2 = make([]int16, len(v))
- }
- testUnmarshalErr(v216v2, bs216, h, t, "dec-slice-v216")
- testDeepEqualErr(v216v1, v216v2, t, "equal-slice-v216")
- if v == nil {
- v216v2 = nil
- } else {
- v216v2 = make([]int16, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v216v2), bs216, h, t, "dec-slice-v216-noaddr") // non-addressable value
- testDeepEqualErr(v216v1, v216v2, t, "equal-slice-v216-noaddr")
- // ...
- bs216 = testMarshalErr(&v216v1, h, t, "enc-slice-v216-p")
- v216v2 = nil
- testUnmarshalErr(&v216v2, bs216, h, t, "dec-slice-v216-p")
- testDeepEqualErr(v216v1, v216v2, t, "equal-slice-v216-p")
- v216va = [8]int16{} // clear the array
- v216v2 = v216va[:1:1]
- testUnmarshalErr(&v216v2, bs216, h, t, "dec-slice-v216-p-1")
- testDeepEqualErr(v216v1, v216v2, t, "equal-slice-v216-p-1")
- v216va = [8]int16{} // clear the array
- v216v2 = v216va[:len(v216v1):len(v216v1)]
- testUnmarshalErr(&v216v2, bs216, h, t, "dec-slice-v216-p-len")
- testDeepEqualErr(v216v1, v216v2, t, "equal-slice-v216-p-len")
- v216va = [8]int16{} // clear the array
- v216v2 = v216va[:]
- testUnmarshalErr(&v216v2, bs216, h, t, "dec-slice-v216-p-cap")
- testDeepEqualErr(v216v1, v216v2, t, "equal-slice-v216-p-cap")
- if len(v216v1) > 1 {
- v216va = [8]int16{} // clear the array
- testUnmarshalErr((&v216va)[:len(v216v1)], bs216, h, t, "dec-slice-v216-p-len-noaddr")
- testDeepEqualErr(v216v1, v216va[:len(v216v1)], t, "equal-slice-v216-p-len-noaddr")
- v216va = [8]int16{} // clear the array
- testUnmarshalErr((&v216va)[:], bs216, h, t, "dec-slice-v216-p-cap-noaddr")
- testDeepEqualErr(v216v1, v216va[:len(v216v1)], t, "equal-slice-v216-p-cap-noaddr")
- }
- // ...
- var v216v3, v216v4 typMbsSliceInt16
- v216v2 = nil
- if v != nil {
- v216v2 = make([]int16, len(v))
- }
- v216v3 = typMbsSliceInt16(v216v1)
- v216v4 = typMbsSliceInt16(v216v2)
- bs216 = testMarshalErr(v216v3, h, t, "enc-slice-v216-custom")
- testUnmarshalErr(v216v4, bs216, h, t, "dec-slice-v216-custom")
- testDeepEqualErr(v216v3, v216v4, t, "equal-slice-v216-custom")
- bs216 = testMarshalErr(&v216v3, h, t, "enc-slice-v216-custom-p")
- v216v2 = nil
- v216v4 = typMbsSliceInt16(v216v2)
- testUnmarshalErr(&v216v4, bs216, h, t, "dec-slice-v216-custom-p")
- testDeepEqualErr(v216v3, v216v4, t, "equal-slice-v216-custom-p")
- }
- var v234va [8]int32
- for _, v := range [][]int32{nil, {}, {44, 0, 0, 33}} {
- var v234v1, v234v2 []int32
- v234v1 = v
- bs234 := testMarshalErr(v234v1, h, t, "enc-slice-v234")
- if v == nil {
- v234v2 = nil
- } else {
- v234v2 = make([]int32, len(v))
- }
- testUnmarshalErr(v234v2, bs234, h, t, "dec-slice-v234")
- testDeepEqualErr(v234v1, v234v2, t, "equal-slice-v234")
- if v == nil {
- v234v2 = nil
- } else {
- v234v2 = make([]int32, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v234v2), bs234, h, t, "dec-slice-v234-noaddr") // non-addressable value
- testDeepEqualErr(v234v1, v234v2, t, "equal-slice-v234-noaddr")
- // ...
- bs234 = testMarshalErr(&v234v1, h, t, "enc-slice-v234-p")
- v234v2 = nil
- testUnmarshalErr(&v234v2, bs234, h, t, "dec-slice-v234-p")
- testDeepEqualErr(v234v1, v234v2, t, "equal-slice-v234-p")
- v234va = [8]int32{} // clear the array
- v234v2 = v234va[:1:1]
- testUnmarshalErr(&v234v2, bs234, h, t, "dec-slice-v234-p-1")
- testDeepEqualErr(v234v1, v234v2, t, "equal-slice-v234-p-1")
- v234va = [8]int32{} // clear the array
- v234v2 = v234va[:len(v234v1):len(v234v1)]
- testUnmarshalErr(&v234v2, bs234, h, t, "dec-slice-v234-p-len")
- testDeepEqualErr(v234v1, v234v2, t, "equal-slice-v234-p-len")
- v234va = [8]int32{} // clear the array
- v234v2 = v234va[:]
- testUnmarshalErr(&v234v2, bs234, h, t, "dec-slice-v234-p-cap")
- testDeepEqualErr(v234v1, v234v2, t, "equal-slice-v234-p-cap")
- if len(v234v1) > 1 {
- v234va = [8]int32{} // clear the array
- testUnmarshalErr((&v234va)[:len(v234v1)], bs234, h, t, "dec-slice-v234-p-len-noaddr")
- testDeepEqualErr(v234v1, v234va[:len(v234v1)], t, "equal-slice-v234-p-len-noaddr")
- v234va = [8]int32{} // clear the array
- testUnmarshalErr((&v234va)[:], bs234, h, t, "dec-slice-v234-p-cap-noaddr")
- testDeepEqualErr(v234v1, v234va[:len(v234v1)], t, "equal-slice-v234-p-cap-noaddr")
- }
- // ...
- var v234v3, v234v4 typMbsSliceInt32
- v234v2 = nil
- if v != nil {
- v234v2 = make([]int32, len(v))
- }
- v234v3 = typMbsSliceInt32(v234v1)
- v234v4 = typMbsSliceInt32(v234v2)
- bs234 = testMarshalErr(v234v3, h, t, "enc-slice-v234-custom")
- testUnmarshalErr(v234v4, bs234, h, t, "dec-slice-v234-custom")
- testDeepEqualErr(v234v3, v234v4, t, "equal-slice-v234-custom")
- bs234 = testMarshalErr(&v234v3, h, t, "enc-slice-v234-custom-p")
- v234v2 = nil
- v234v4 = typMbsSliceInt32(v234v2)
- testUnmarshalErr(&v234v4, bs234, h, t, "dec-slice-v234-custom-p")
- testDeepEqualErr(v234v3, v234v4, t, "equal-slice-v234-custom-p")
- }
- var v252va [8]int64
- for _, v := range [][]int64{nil, {}, {44, 0, 0, 33}} {
- var v252v1, v252v2 []int64
- v252v1 = v
- bs252 := testMarshalErr(v252v1, h, t, "enc-slice-v252")
- if v == nil {
- v252v2 = nil
- } else {
- v252v2 = make([]int64, len(v))
- }
- testUnmarshalErr(v252v2, bs252, h, t, "dec-slice-v252")
- testDeepEqualErr(v252v1, v252v2, t, "equal-slice-v252")
- if v == nil {
- v252v2 = nil
- } else {
- v252v2 = make([]int64, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v252v2), bs252, h, t, "dec-slice-v252-noaddr") // non-addressable value
- testDeepEqualErr(v252v1, v252v2, t, "equal-slice-v252-noaddr")
- // ...
- bs252 = testMarshalErr(&v252v1, h, t, "enc-slice-v252-p")
- v252v2 = nil
- testUnmarshalErr(&v252v2, bs252, h, t, "dec-slice-v252-p")
- testDeepEqualErr(v252v1, v252v2, t, "equal-slice-v252-p")
- v252va = [8]int64{} // clear the array
- v252v2 = v252va[:1:1]
- testUnmarshalErr(&v252v2, bs252, h, t, "dec-slice-v252-p-1")
- testDeepEqualErr(v252v1, v252v2, t, "equal-slice-v252-p-1")
- v252va = [8]int64{} // clear the array
- v252v2 = v252va[:len(v252v1):len(v252v1)]
- testUnmarshalErr(&v252v2, bs252, h, t, "dec-slice-v252-p-len")
- testDeepEqualErr(v252v1, v252v2, t, "equal-slice-v252-p-len")
- v252va = [8]int64{} // clear the array
- v252v2 = v252va[:]
- testUnmarshalErr(&v252v2, bs252, h, t, "dec-slice-v252-p-cap")
- testDeepEqualErr(v252v1, v252v2, t, "equal-slice-v252-p-cap")
- if len(v252v1) > 1 {
- v252va = [8]int64{} // clear the array
- testUnmarshalErr((&v252va)[:len(v252v1)], bs252, h, t, "dec-slice-v252-p-len-noaddr")
- testDeepEqualErr(v252v1, v252va[:len(v252v1)], t, "equal-slice-v252-p-len-noaddr")
- v252va = [8]int64{} // clear the array
- testUnmarshalErr((&v252va)[:], bs252, h, t, "dec-slice-v252-p-cap-noaddr")
- testDeepEqualErr(v252v1, v252va[:len(v252v1)], t, "equal-slice-v252-p-cap-noaddr")
- }
- // ...
- var v252v3, v252v4 typMbsSliceInt64
- v252v2 = nil
- if v != nil {
- v252v2 = make([]int64, len(v))
- }
- v252v3 = typMbsSliceInt64(v252v1)
- v252v4 = typMbsSliceInt64(v252v2)
- bs252 = testMarshalErr(v252v3, h, t, "enc-slice-v252-custom")
- testUnmarshalErr(v252v4, bs252, h, t, "dec-slice-v252-custom")
- testDeepEqualErr(v252v3, v252v4, t, "equal-slice-v252-custom")
- bs252 = testMarshalErr(&v252v3, h, t, "enc-slice-v252-custom-p")
- v252v2 = nil
- v252v4 = typMbsSliceInt64(v252v2)
- testUnmarshalErr(&v252v4, bs252, h, t, "dec-slice-v252-custom-p")
- testDeepEqualErr(v252v3, v252v4, t, "equal-slice-v252-custom-p")
- }
- var v270va [8]bool
- for _, v := range [][]bool{nil, {}, {true, false, false, true}} {
- var v270v1, v270v2 []bool
- v270v1 = v
- bs270 := testMarshalErr(v270v1, h, t, "enc-slice-v270")
- if v == nil {
- v270v2 = nil
- } else {
- v270v2 = make([]bool, len(v))
- }
- testUnmarshalErr(v270v2, bs270, h, t, "dec-slice-v270")
- testDeepEqualErr(v270v1, v270v2, t, "equal-slice-v270")
- if v == nil {
- v270v2 = nil
- } else {
- v270v2 = make([]bool, len(v))
- }
- testUnmarshalErr(reflect.ValueOf(v270v2), bs270, h, t, "dec-slice-v270-noaddr") // non-addressable value
- testDeepEqualErr(v270v1, v270v2, t, "equal-slice-v270-noaddr")
- // ...
- bs270 = testMarshalErr(&v270v1, h, t, "enc-slice-v270-p")
- v270v2 = nil
- testUnmarshalErr(&v270v2, bs270, h, t, "dec-slice-v270-p")
- testDeepEqualErr(v270v1, v270v2, t, "equal-slice-v270-p")
- v270va = [8]bool{} // clear the array
- v270v2 = v270va[:1:1]
- testUnmarshalErr(&v270v2, bs270, h, t, "dec-slice-v270-p-1")
- testDeepEqualErr(v270v1, v270v2, t, "equal-slice-v270-p-1")
- v270va = [8]bool{} // clear the array
- v270v2 = v270va[:len(v270v1):len(v270v1)]
- testUnmarshalErr(&v270v2, bs270, h, t, "dec-slice-v270-p-len")
- testDeepEqualErr(v270v1, v270v2, t, "equal-slice-v270-p-len")
- v270va = [8]bool{} // clear the array
- v270v2 = v270va[:]
- testUnmarshalErr(&v270v2, bs270, h, t, "dec-slice-v270-p-cap")
- testDeepEqualErr(v270v1, v270v2, t, "equal-slice-v270-p-cap")
- if len(v270v1) > 1 {
- v270va = [8]bool{} // clear the array
- testUnmarshalErr((&v270va)[:len(v270v1)], bs270, h, t, "dec-slice-v270-p-len-noaddr")
- testDeepEqualErr(v270v1, v270va[:len(v270v1)], t, "equal-slice-v270-p-len-noaddr")
- v270va = [8]bool{} // clear the array
- testUnmarshalErr((&v270va)[:], bs270, h, t, "dec-slice-v270-p-cap-noaddr")
- testDeepEqualErr(v270v1, v270va[:len(v270v1)], t, "equal-slice-v270-p-cap-noaddr")
- }
- // ...
- var v270v3, v270v4 typMbsSliceBool
- v270v2 = nil
- if v != nil {
- v270v2 = make([]bool, len(v))
- }
- v270v3 = typMbsSliceBool(v270v1)
- v270v4 = typMbsSliceBool(v270v2)
- bs270 = testMarshalErr(v270v3, h, t, "enc-slice-v270-custom")
- testUnmarshalErr(v270v4, bs270, h, t, "dec-slice-v270-custom")
- testDeepEqualErr(v270v3, v270v4, t, "equal-slice-v270-custom")
- bs270 = testMarshalErr(&v270v3, h, t, "enc-slice-v270-custom-p")
- v270v2 = nil
- v270v4 = typMbsSliceBool(v270v2)
- testUnmarshalErr(&v270v4, bs270, h, t, "dec-slice-v270-custom-p")
- testDeepEqualErr(v270v3, v270v4, t, "equal-slice-v270-custom-p")
- }
- }
- func doTestMammothMaps(t *testing.T, h Handle) {
- for _, v := range []map[interface{}]interface{}{nil, {}, {"string-is-an-interface-2": nil, "string-is-an-interface": "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v2: %v\n", v)
- var v2v1, v2v2 map[interface{}]interface{}
- v2v1 = v
- bs2 := testMarshalErr(v2v1, h, t, "enc-map-v2")
- if v == nil {
- v2v2 = nil
- } else {
- v2v2 = make(map[interface{}]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v2v2, bs2, h, t, "dec-map-v2")
- testDeepEqualErr(v2v1, v2v2, t, "equal-map-v2")
- if v == nil {
- v2v2 = nil
- } else {
- v2v2 = make(map[interface{}]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v2v2), bs2, h, t, "dec-map-v2-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v2v1, v2v2, t, "equal-map-v2-noaddr")
- if v == nil {
- v2v2 = nil
- } else {
- v2v2 = make(map[interface{}]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v2v2, bs2, h, t, "dec-map-v2-p-len")
- testDeepEqualErr(v2v1, v2v2, t, "equal-map-v2-p-len")
- bs2 = testMarshalErr(&v2v1, h, t, "enc-map-v2-p")
- v2v2 = nil
- testUnmarshalErr(&v2v2, bs2, h, t, "dec-map-v2-p-nil")
- testDeepEqualErr(v2v1, v2v2, t, "equal-map-v2-p-nil")
- // ...
- if v == nil {
- v2v2 = nil
- } else {
- v2v2 = make(map[interface{}]interface{}, len(v))
- } // reset map
- var v2v3, v2v4 typMapMapIntfIntf
- v2v3 = typMapMapIntfIntf(v2v1)
- v2v4 = typMapMapIntfIntf(v2v2)
- bs2 = testMarshalErr(v2v3, h, t, "enc-map-v2-custom")
- testUnmarshalErr(v2v4, bs2, h, t, "dec-map-v2-p-len")
- testDeepEqualErr(v2v3, v2v4, t, "equal-map-v2-p-len")
- }
- for _, v := range []map[interface{}]string{nil, {}, {"string-is-an-interface": "", "string-is-an-interface-2": "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v3: %v\n", v)
- var v3v1, v3v2 map[interface{}]string
- v3v1 = v
- bs3 := testMarshalErr(v3v1, h, t, "enc-map-v3")
- if v == nil {
- v3v2 = nil
- } else {
- v3v2 = make(map[interface{}]string, len(v))
- } // reset map
- testUnmarshalErr(v3v2, bs3, h, t, "dec-map-v3")
- testDeepEqualErr(v3v1, v3v2, t, "equal-map-v3")
- if v == nil {
- v3v2 = nil
- } else {
- v3v2 = make(map[interface{}]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v3v2), bs3, h, t, "dec-map-v3-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v3v1, v3v2, t, "equal-map-v3-noaddr")
- if v == nil {
- v3v2 = nil
- } else {
- v3v2 = make(map[interface{}]string, len(v))
- } // reset map
- testUnmarshalErr(&v3v2, bs3, h, t, "dec-map-v3-p-len")
- testDeepEqualErr(v3v1, v3v2, t, "equal-map-v3-p-len")
- bs3 = testMarshalErr(&v3v1, h, t, "enc-map-v3-p")
- v3v2 = nil
- testUnmarshalErr(&v3v2, bs3, h, t, "dec-map-v3-p-nil")
- testDeepEqualErr(v3v1, v3v2, t, "equal-map-v3-p-nil")
- // ...
- if v == nil {
- v3v2 = nil
- } else {
- v3v2 = make(map[interface{}]string, len(v))
- } // reset map
- var v3v3, v3v4 typMapMapIntfString
- v3v3 = typMapMapIntfString(v3v1)
- v3v4 = typMapMapIntfString(v3v2)
- bs3 = testMarshalErr(v3v3, h, t, "enc-map-v3-custom")
- testUnmarshalErr(v3v4, bs3, h, t, "dec-map-v3-p-len")
- testDeepEqualErr(v3v3, v3v4, t, "equal-map-v3-p-len")
- }
- for _, v := range []map[interface{}]uint{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 44}} {
- // fmt.Printf(">>>> running mammoth map v4: %v\n", v)
- var v4v1, v4v2 map[interface{}]uint
- v4v1 = v
- bs4 := testMarshalErr(v4v1, h, t, "enc-map-v4")
- if v == nil {
- v4v2 = nil
- } else {
- v4v2 = make(map[interface{}]uint, len(v))
- } // reset map
- testUnmarshalErr(v4v2, bs4, h, t, "dec-map-v4")
- testDeepEqualErr(v4v1, v4v2, t, "equal-map-v4")
- if v == nil {
- v4v2 = nil
- } else {
- v4v2 = make(map[interface{}]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v4v2), bs4, h, t, "dec-map-v4-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v4v1, v4v2, t, "equal-map-v4-noaddr")
- if v == nil {
- v4v2 = nil
- } else {
- v4v2 = make(map[interface{}]uint, len(v))
- } // reset map
- testUnmarshalErr(&v4v2, bs4, h, t, "dec-map-v4-p-len")
- testDeepEqualErr(v4v1, v4v2, t, "equal-map-v4-p-len")
- bs4 = testMarshalErr(&v4v1, h, t, "enc-map-v4-p")
- v4v2 = nil
- testUnmarshalErr(&v4v2, bs4, h, t, "dec-map-v4-p-nil")
- testDeepEqualErr(v4v1, v4v2, t, "equal-map-v4-p-nil")
- // ...
- if v == nil {
- v4v2 = nil
- } else {
- v4v2 = make(map[interface{}]uint, len(v))
- } // reset map
- var v4v3, v4v4 typMapMapIntfUint
- v4v3 = typMapMapIntfUint(v4v1)
- v4v4 = typMapMapIntfUint(v4v2)
- bs4 = testMarshalErr(v4v3, h, t, "enc-map-v4-custom")
- testUnmarshalErr(v4v4, bs4, h, t, "dec-map-v4-p-len")
- testDeepEqualErr(v4v3, v4v4, t, "equal-map-v4-p-len")
- }
- for _, v := range []map[interface{}]uint8{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 33}} {
- // fmt.Printf(">>>> running mammoth map v5: %v\n", v)
- var v5v1, v5v2 map[interface{}]uint8
- v5v1 = v
- bs5 := testMarshalErr(v5v1, h, t, "enc-map-v5")
- if v == nil {
- v5v2 = nil
- } else {
- v5v2 = make(map[interface{}]uint8, len(v))
- } // reset map
- testUnmarshalErr(v5v2, bs5, h, t, "dec-map-v5")
- testDeepEqualErr(v5v1, v5v2, t, "equal-map-v5")
- if v == nil {
- v5v2 = nil
- } else {
- v5v2 = make(map[interface{}]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v5v2), bs5, h, t, "dec-map-v5-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v5v1, v5v2, t, "equal-map-v5-noaddr")
- if v == nil {
- v5v2 = nil
- } else {
- v5v2 = make(map[interface{}]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v5v2, bs5, h, t, "dec-map-v5-p-len")
- testDeepEqualErr(v5v1, v5v2, t, "equal-map-v5-p-len")
- bs5 = testMarshalErr(&v5v1, h, t, "enc-map-v5-p")
- v5v2 = nil
- testUnmarshalErr(&v5v2, bs5, h, t, "dec-map-v5-p-nil")
- testDeepEqualErr(v5v1, v5v2, t, "equal-map-v5-p-nil")
- // ...
- if v == nil {
- v5v2 = nil
- } else {
- v5v2 = make(map[interface{}]uint8, len(v))
- } // reset map
- var v5v3, v5v4 typMapMapIntfUint8
- v5v3 = typMapMapIntfUint8(v5v1)
- v5v4 = typMapMapIntfUint8(v5v2)
- bs5 = testMarshalErr(v5v3, h, t, "enc-map-v5-custom")
- testUnmarshalErr(v5v4, bs5, h, t, "dec-map-v5-p-len")
- testDeepEqualErr(v5v3, v5v4, t, "equal-map-v5-p-len")
- }
- for _, v := range []map[interface{}]uint16{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 44}} {
- // fmt.Printf(">>>> running mammoth map v6: %v\n", v)
- var v6v1, v6v2 map[interface{}]uint16
- v6v1 = v
- bs6 := testMarshalErr(v6v1, h, t, "enc-map-v6")
- if v == nil {
- v6v2 = nil
- } else {
- v6v2 = make(map[interface{}]uint16, len(v))
- } // reset map
- testUnmarshalErr(v6v2, bs6, h, t, "dec-map-v6")
- testDeepEqualErr(v6v1, v6v2, t, "equal-map-v6")
- if v == nil {
- v6v2 = nil
- } else {
- v6v2 = make(map[interface{}]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v6v2), bs6, h, t, "dec-map-v6-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v6v1, v6v2, t, "equal-map-v6-noaddr")
- if v == nil {
- v6v2 = nil
- } else {
- v6v2 = make(map[interface{}]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v6v2, bs6, h, t, "dec-map-v6-p-len")
- testDeepEqualErr(v6v1, v6v2, t, "equal-map-v6-p-len")
- bs6 = testMarshalErr(&v6v1, h, t, "enc-map-v6-p")
- v6v2 = nil
- testUnmarshalErr(&v6v2, bs6, h, t, "dec-map-v6-p-nil")
- testDeepEqualErr(v6v1, v6v2, t, "equal-map-v6-p-nil")
- // ...
- if v == nil {
- v6v2 = nil
- } else {
- v6v2 = make(map[interface{}]uint16, len(v))
- } // reset map
- var v6v3, v6v4 typMapMapIntfUint16
- v6v3 = typMapMapIntfUint16(v6v1)
- v6v4 = typMapMapIntfUint16(v6v2)
- bs6 = testMarshalErr(v6v3, h, t, "enc-map-v6-custom")
- testUnmarshalErr(v6v4, bs6, h, t, "dec-map-v6-p-len")
- testDeepEqualErr(v6v3, v6v4, t, "equal-map-v6-p-len")
- }
- for _, v := range []map[interface{}]uint32{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 33}} {
- // fmt.Printf(">>>> running mammoth map v7: %v\n", v)
- var v7v1, v7v2 map[interface{}]uint32
- v7v1 = v
- bs7 := testMarshalErr(v7v1, h, t, "enc-map-v7")
- if v == nil {
- v7v2 = nil
- } else {
- v7v2 = make(map[interface{}]uint32, len(v))
- } // reset map
- testUnmarshalErr(v7v2, bs7, h, t, "dec-map-v7")
- testDeepEqualErr(v7v1, v7v2, t, "equal-map-v7")
- if v == nil {
- v7v2 = nil
- } else {
- v7v2 = make(map[interface{}]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v7v2), bs7, h, t, "dec-map-v7-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v7v1, v7v2, t, "equal-map-v7-noaddr")
- if v == nil {
- v7v2 = nil
- } else {
- v7v2 = make(map[interface{}]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v7v2, bs7, h, t, "dec-map-v7-p-len")
- testDeepEqualErr(v7v1, v7v2, t, "equal-map-v7-p-len")
- bs7 = testMarshalErr(&v7v1, h, t, "enc-map-v7-p")
- v7v2 = nil
- testUnmarshalErr(&v7v2, bs7, h, t, "dec-map-v7-p-nil")
- testDeepEqualErr(v7v1, v7v2, t, "equal-map-v7-p-nil")
- // ...
- if v == nil {
- v7v2 = nil
- } else {
- v7v2 = make(map[interface{}]uint32, len(v))
- } // reset map
- var v7v3, v7v4 typMapMapIntfUint32
- v7v3 = typMapMapIntfUint32(v7v1)
- v7v4 = typMapMapIntfUint32(v7v2)
- bs7 = testMarshalErr(v7v3, h, t, "enc-map-v7-custom")
- testUnmarshalErr(v7v4, bs7, h, t, "dec-map-v7-p-len")
- testDeepEqualErr(v7v3, v7v4, t, "equal-map-v7-p-len")
- }
- for _, v := range []map[interface{}]uint64{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 44}} {
- // fmt.Printf(">>>> running mammoth map v8: %v\n", v)
- var v8v1, v8v2 map[interface{}]uint64
- v8v1 = v
- bs8 := testMarshalErr(v8v1, h, t, "enc-map-v8")
- if v == nil {
- v8v2 = nil
- } else {
- v8v2 = make(map[interface{}]uint64, len(v))
- } // reset map
- testUnmarshalErr(v8v2, bs8, h, t, "dec-map-v8")
- testDeepEqualErr(v8v1, v8v2, t, "equal-map-v8")
- if v == nil {
- v8v2 = nil
- } else {
- v8v2 = make(map[interface{}]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v8v2), bs8, h, t, "dec-map-v8-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v8v1, v8v2, t, "equal-map-v8-noaddr")
- if v == nil {
- v8v2 = nil
- } else {
- v8v2 = make(map[interface{}]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v8v2, bs8, h, t, "dec-map-v8-p-len")
- testDeepEqualErr(v8v1, v8v2, t, "equal-map-v8-p-len")
- bs8 = testMarshalErr(&v8v1, h, t, "enc-map-v8-p")
- v8v2 = nil
- testUnmarshalErr(&v8v2, bs8, h, t, "dec-map-v8-p-nil")
- testDeepEqualErr(v8v1, v8v2, t, "equal-map-v8-p-nil")
- // ...
- if v == nil {
- v8v2 = nil
- } else {
- v8v2 = make(map[interface{}]uint64, len(v))
- } // reset map
- var v8v3, v8v4 typMapMapIntfUint64
- v8v3 = typMapMapIntfUint64(v8v1)
- v8v4 = typMapMapIntfUint64(v8v2)
- bs8 = testMarshalErr(v8v3, h, t, "enc-map-v8-custom")
- testUnmarshalErr(v8v4, bs8, h, t, "dec-map-v8-p-len")
- testDeepEqualErr(v8v3, v8v4, t, "equal-map-v8-p-len")
- }
- for _, v := range []map[interface{}]uintptr{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 33}} {
- // fmt.Printf(">>>> running mammoth map v9: %v\n", v)
- var v9v1, v9v2 map[interface{}]uintptr
- v9v1 = v
- bs9 := testMarshalErr(v9v1, h, t, "enc-map-v9")
- if v == nil {
- v9v2 = nil
- } else {
- v9v2 = make(map[interface{}]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v9v2, bs9, h, t, "dec-map-v9")
- testDeepEqualErr(v9v1, v9v2, t, "equal-map-v9")
- if v == nil {
- v9v2 = nil
- } else {
- v9v2 = make(map[interface{}]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v9v2), bs9, h, t, "dec-map-v9-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v9v1, v9v2, t, "equal-map-v9-noaddr")
- if v == nil {
- v9v2 = nil
- } else {
- v9v2 = make(map[interface{}]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v9v2, bs9, h, t, "dec-map-v9-p-len")
- testDeepEqualErr(v9v1, v9v2, t, "equal-map-v9-p-len")
- bs9 = testMarshalErr(&v9v1, h, t, "enc-map-v9-p")
- v9v2 = nil
- testUnmarshalErr(&v9v2, bs9, h, t, "dec-map-v9-p-nil")
- testDeepEqualErr(v9v1, v9v2, t, "equal-map-v9-p-nil")
- // ...
- if v == nil {
- v9v2 = nil
- } else {
- v9v2 = make(map[interface{}]uintptr, len(v))
- } // reset map
- var v9v3, v9v4 typMapMapIntfUintptr
- v9v3 = typMapMapIntfUintptr(v9v1)
- v9v4 = typMapMapIntfUintptr(v9v2)
- bs9 = testMarshalErr(v9v3, h, t, "enc-map-v9-custom")
- testUnmarshalErr(v9v4, bs9, h, t, "dec-map-v9-p-len")
- testDeepEqualErr(v9v3, v9v4, t, "equal-map-v9-p-len")
- }
- for _, v := range []map[interface{}]int{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 44}} {
- // fmt.Printf(">>>> running mammoth map v10: %v\n", v)
- var v10v1, v10v2 map[interface{}]int
- v10v1 = v
- bs10 := testMarshalErr(v10v1, h, t, "enc-map-v10")
- if v == nil {
- v10v2 = nil
- } else {
- v10v2 = make(map[interface{}]int, len(v))
- } // reset map
- testUnmarshalErr(v10v2, bs10, h, t, "dec-map-v10")
- testDeepEqualErr(v10v1, v10v2, t, "equal-map-v10")
- if v == nil {
- v10v2 = nil
- } else {
- v10v2 = make(map[interface{}]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v10v2), bs10, h, t, "dec-map-v10-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v10v1, v10v2, t, "equal-map-v10-noaddr")
- if v == nil {
- v10v2 = nil
- } else {
- v10v2 = make(map[interface{}]int, len(v))
- } // reset map
- testUnmarshalErr(&v10v2, bs10, h, t, "dec-map-v10-p-len")
- testDeepEqualErr(v10v1, v10v2, t, "equal-map-v10-p-len")
- bs10 = testMarshalErr(&v10v1, h, t, "enc-map-v10-p")
- v10v2 = nil
- testUnmarshalErr(&v10v2, bs10, h, t, "dec-map-v10-p-nil")
- testDeepEqualErr(v10v1, v10v2, t, "equal-map-v10-p-nil")
- // ...
- if v == nil {
- v10v2 = nil
- } else {
- v10v2 = make(map[interface{}]int, len(v))
- } // reset map
- var v10v3, v10v4 typMapMapIntfInt
- v10v3 = typMapMapIntfInt(v10v1)
- v10v4 = typMapMapIntfInt(v10v2)
- bs10 = testMarshalErr(v10v3, h, t, "enc-map-v10-custom")
- testUnmarshalErr(v10v4, bs10, h, t, "dec-map-v10-p-len")
- testDeepEqualErr(v10v3, v10v4, t, "equal-map-v10-p-len")
- }
- for _, v := range []map[interface{}]int8{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 33}} {
- // fmt.Printf(">>>> running mammoth map v11: %v\n", v)
- var v11v1, v11v2 map[interface{}]int8
- v11v1 = v
- bs11 := testMarshalErr(v11v1, h, t, "enc-map-v11")
- if v == nil {
- v11v2 = nil
- } else {
- v11v2 = make(map[interface{}]int8, len(v))
- } // reset map
- testUnmarshalErr(v11v2, bs11, h, t, "dec-map-v11")
- testDeepEqualErr(v11v1, v11v2, t, "equal-map-v11")
- if v == nil {
- v11v2 = nil
- } else {
- v11v2 = make(map[interface{}]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v11v2), bs11, h, t, "dec-map-v11-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v11v1, v11v2, t, "equal-map-v11-noaddr")
- if v == nil {
- v11v2 = nil
- } else {
- v11v2 = make(map[interface{}]int8, len(v))
- } // reset map
- testUnmarshalErr(&v11v2, bs11, h, t, "dec-map-v11-p-len")
- testDeepEqualErr(v11v1, v11v2, t, "equal-map-v11-p-len")
- bs11 = testMarshalErr(&v11v1, h, t, "enc-map-v11-p")
- v11v2 = nil
- testUnmarshalErr(&v11v2, bs11, h, t, "dec-map-v11-p-nil")
- testDeepEqualErr(v11v1, v11v2, t, "equal-map-v11-p-nil")
- // ...
- if v == nil {
- v11v2 = nil
- } else {
- v11v2 = make(map[interface{}]int8, len(v))
- } // reset map
- var v11v3, v11v4 typMapMapIntfInt8
- v11v3 = typMapMapIntfInt8(v11v1)
- v11v4 = typMapMapIntfInt8(v11v2)
- bs11 = testMarshalErr(v11v3, h, t, "enc-map-v11-custom")
- testUnmarshalErr(v11v4, bs11, h, t, "dec-map-v11-p-len")
- testDeepEqualErr(v11v3, v11v4, t, "equal-map-v11-p-len")
- }
- for _, v := range []map[interface{}]int16{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 44}} {
- // fmt.Printf(">>>> running mammoth map v12: %v\n", v)
- var v12v1, v12v2 map[interface{}]int16
- v12v1 = v
- bs12 := testMarshalErr(v12v1, h, t, "enc-map-v12")
- if v == nil {
- v12v2 = nil
- } else {
- v12v2 = make(map[interface{}]int16, len(v))
- } // reset map
- testUnmarshalErr(v12v2, bs12, h, t, "dec-map-v12")
- testDeepEqualErr(v12v1, v12v2, t, "equal-map-v12")
- if v == nil {
- v12v2 = nil
- } else {
- v12v2 = make(map[interface{}]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v12v2), bs12, h, t, "dec-map-v12-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v12v1, v12v2, t, "equal-map-v12-noaddr")
- if v == nil {
- v12v2 = nil
- } else {
- v12v2 = make(map[interface{}]int16, len(v))
- } // reset map
- testUnmarshalErr(&v12v2, bs12, h, t, "dec-map-v12-p-len")
- testDeepEqualErr(v12v1, v12v2, t, "equal-map-v12-p-len")
- bs12 = testMarshalErr(&v12v1, h, t, "enc-map-v12-p")
- v12v2 = nil
- testUnmarshalErr(&v12v2, bs12, h, t, "dec-map-v12-p-nil")
- testDeepEqualErr(v12v1, v12v2, t, "equal-map-v12-p-nil")
- // ...
- if v == nil {
- v12v2 = nil
- } else {
- v12v2 = make(map[interface{}]int16, len(v))
- } // reset map
- var v12v3, v12v4 typMapMapIntfInt16
- v12v3 = typMapMapIntfInt16(v12v1)
- v12v4 = typMapMapIntfInt16(v12v2)
- bs12 = testMarshalErr(v12v3, h, t, "enc-map-v12-custom")
- testUnmarshalErr(v12v4, bs12, h, t, "dec-map-v12-p-len")
- testDeepEqualErr(v12v3, v12v4, t, "equal-map-v12-p-len")
- }
- for _, v := range []map[interface{}]int32{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 33}} {
- // fmt.Printf(">>>> running mammoth map v13: %v\n", v)
- var v13v1, v13v2 map[interface{}]int32
- v13v1 = v
- bs13 := testMarshalErr(v13v1, h, t, "enc-map-v13")
- if v == nil {
- v13v2 = nil
- } else {
- v13v2 = make(map[interface{}]int32, len(v))
- } // reset map
- testUnmarshalErr(v13v2, bs13, h, t, "dec-map-v13")
- testDeepEqualErr(v13v1, v13v2, t, "equal-map-v13")
- if v == nil {
- v13v2 = nil
- } else {
- v13v2 = make(map[interface{}]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v13v2), bs13, h, t, "dec-map-v13-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v13v1, v13v2, t, "equal-map-v13-noaddr")
- if v == nil {
- v13v2 = nil
- } else {
- v13v2 = make(map[interface{}]int32, len(v))
- } // reset map
- testUnmarshalErr(&v13v2, bs13, h, t, "dec-map-v13-p-len")
- testDeepEqualErr(v13v1, v13v2, t, "equal-map-v13-p-len")
- bs13 = testMarshalErr(&v13v1, h, t, "enc-map-v13-p")
- v13v2 = nil
- testUnmarshalErr(&v13v2, bs13, h, t, "dec-map-v13-p-nil")
- testDeepEqualErr(v13v1, v13v2, t, "equal-map-v13-p-nil")
- // ...
- if v == nil {
- v13v2 = nil
- } else {
- v13v2 = make(map[interface{}]int32, len(v))
- } // reset map
- var v13v3, v13v4 typMapMapIntfInt32
- v13v3 = typMapMapIntfInt32(v13v1)
- v13v4 = typMapMapIntfInt32(v13v2)
- bs13 = testMarshalErr(v13v3, h, t, "enc-map-v13-custom")
- testUnmarshalErr(v13v4, bs13, h, t, "dec-map-v13-p-len")
- testDeepEqualErr(v13v3, v13v4, t, "equal-map-v13-p-len")
- }
- for _, v := range []map[interface{}]int64{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 44}} {
- // fmt.Printf(">>>> running mammoth map v14: %v\n", v)
- var v14v1, v14v2 map[interface{}]int64
- v14v1 = v
- bs14 := testMarshalErr(v14v1, h, t, "enc-map-v14")
- if v == nil {
- v14v2 = nil
- } else {
- v14v2 = make(map[interface{}]int64, len(v))
- } // reset map
- testUnmarshalErr(v14v2, bs14, h, t, "dec-map-v14")
- testDeepEqualErr(v14v1, v14v2, t, "equal-map-v14")
- if v == nil {
- v14v2 = nil
- } else {
- v14v2 = make(map[interface{}]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v14v2), bs14, h, t, "dec-map-v14-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v14v1, v14v2, t, "equal-map-v14-noaddr")
- if v == nil {
- v14v2 = nil
- } else {
- v14v2 = make(map[interface{}]int64, len(v))
- } // reset map
- testUnmarshalErr(&v14v2, bs14, h, t, "dec-map-v14-p-len")
- testDeepEqualErr(v14v1, v14v2, t, "equal-map-v14-p-len")
- bs14 = testMarshalErr(&v14v1, h, t, "enc-map-v14-p")
- v14v2 = nil
- testUnmarshalErr(&v14v2, bs14, h, t, "dec-map-v14-p-nil")
- testDeepEqualErr(v14v1, v14v2, t, "equal-map-v14-p-nil")
- // ...
- if v == nil {
- v14v2 = nil
- } else {
- v14v2 = make(map[interface{}]int64, len(v))
- } // reset map
- var v14v3, v14v4 typMapMapIntfInt64
- v14v3 = typMapMapIntfInt64(v14v1)
- v14v4 = typMapMapIntfInt64(v14v2)
- bs14 = testMarshalErr(v14v3, h, t, "enc-map-v14-custom")
- testUnmarshalErr(v14v4, bs14, h, t, "dec-map-v14-p-len")
- testDeepEqualErr(v14v3, v14v4, t, "equal-map-v14-p-len")
- }
- for _, v := range []map[interface{}]float32{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 22.2}} {
- // fmt.Printf(">>>> running mammoth map v15: %v\n", v)
- var v15v1, v15v2 map[interface{}]float32
- v15v1 = v
- bs15 := testMarshalErr(v15v1, h, t, "enc-map-v15")
- if v == nil {
- v15v2 = nil
- } else {
- v15v2 = make(map[interface{}]float32, len(v))
- } // reset map
- testUnmarshalErr(v15v2, bs15, h, t, "dec-map-v15")
- testDeepEqualErr(v15v1, v15v2, t, "equal-map-v15")
- if v == nil {
- v15v2 = nil
- } else {
- v15v2 = make(map[interface{}]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v15v2), bs15, h, t, "dec-map-v15-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v15v1, v15v2, t, "equal-map-v15-noaddr")
- if v == nil {
- v15v2 = nil
- } else {
- v15v2 = make(map[interface{}]float32, len(v))
- } // reset map
- testUnmarshalErr(&v15v2, bs15, h, t, "dec-map-v15-p-len")
- testDeepEqualErr(v15v1, v15v2, t, "equal-map-v15-p-len")
- bs15 = testMarshalErr(&v15v1, h, t, "enc-map-v15-p")
- v15v2 = nil
- testUnmarshalErr(&v15v2, bs15, h, t, "dec-map-v15-p-nil")
- testDeepEqualErr(v15v1, v15v2, t, "equal-map-v15-p-nil")
- // ...
- if v == nil {
- v15v2 = nil
- } else {
- v15v2 = make(map[interface{}]float32, len(v))
- } // reset map
- var v15v3, v15v4 typMapMapIntfFloat32
- v15v3 = typMapMapIntfFloat32(v15v1)
- v15v4 = typMapMapIntfFloat32(v15v2)
- bs15 = testMarshalErr(v15v3, h, t, "enc-map-v15-custom")
- testUnmarshalErr(v15v4, bs15, h, t, "dec-map-v15-p-len")
- testDeepEqualErr(v15v3, v15v4, t, "equal-map-v15-p-len")
- }
- for _, v := range []map[interface{}]float64{nil, {}, {"string-is-an-interface": 0, "string-is-an-interface-2": 11.1}} {
- // fmt.Printf(">>>> running mammoth map v16: %v\n", v)
- var v16v1, v16v2 map[interface{}]float64
- v16v1 = v
- bs16 := testMarshalErr(v16v1, h, t, "enc-map-v16")
- if v == nil {
- v16v2 = nil
- } else {
- v16v2 = make(map[interface{}]float64, len(v))
- } // reset map
- testUnmarshalErr(v16v2, bs16, h, t, "dec-map-v16")
- testDeepEqualErr(v16v1, v16v2, t, "equal-map-v16")
- if v == nil {
- v16v2 = nil
- } else {
- v16v2 = make(map[interface{}]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v16v2), bs16, h, t, "dec-map-v16-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v16v1, v16v2, t, "equal-map-v16-noaddr")
- if v == nil {
- v16v2 = nil
- } else {
- v16v2 = make(map[interface{}]float64, len(v))
- } // reset map
- testUnmarshalErr(&v16v2, bs16, h, t, "dec-map-v16-p-len")
- testDeepEqualErr(v16v1, v16v2, t, "equal-map-v16-p-len")
- bs16 = testMarshalErr(&v16v1, h, t, "enc-map-v16-p")
- v16v2 = nil
- testUnmarshalErr(&v16v2, bs16, h, t, "dec-map-v16-p-nil")
- testDeepEqualErr(v16v1, v16v2, t, "equal-map-v16-p-nil")
- // ...
- if v == nil {
- v16v2 = nil
- } else {
- v16v2 = make(map[interface{}]float64, len(v))
- } // reset map
- var v16v3, v16v4 typMapMapIntfFloat64
- v16v3 = typMapMapIntfFloat64(v16v1)
- v16v4 = typMapMapIntfFloat64(v16v2)
- bs16 = testMarshalErr(v16v3, h, t, "enc-map-v16-custom")
- testUnmarshalErr(v16v4, bs16, h, t, "dec-map-v16-p-len")
- testDeepEqualErr(v16v3, v16v4, t, "equal-map-v16-p-len")
- }
- for _, v := range []map[interface{}]bool{nil, {}, {"string-is-an-interface": false, "string-is-an-interface-2": true}} {
- // fmt.Printf(">>>> running mammoth map v17: %v\n", v)
- var v17v1, v17v2 map[interface{}]bool
- v17v1 = v
- bs17 := testMarshalErr(v17v1, h, t, "enc-map-v17")
- if v == nil {
- v17v2 = nil
- } else {
- v17v2 = make(map[interface{}]bool, len(v))
- } // reset map
- testUnmarshalErr(v17v2, bs17, h, t, "dec-map-v17")
- testDeepEqualErr(v17v1, v17v2, t, "equal-map-v17")
- if v == nil {
- v17v2 = nil
- } else {
- v17v2 = make(map[interface{}]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v17v2), bs17, h, t, "dec-map-v17-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v17v1, v17v2, t, "equal-map-v17-noaddr")
- if v == nil {
- v17v2 = nil
- } else {
- v17v2 = make(map[interface{}]bool, len(v))
- } // reset map
- testUnmarshalErr(&v17v2, bs17, h, t, "dec-map-v17-p-len")
- testDeepEqualErr(v17v1, v17v2, t, "equal-map-v17-p-len")
- bs17 = testMarshalErr(&v17v1, h, t, "enc-map-v17-p")
- v17v2 = nil
- testUnmarshalErr(&v17v2, bs17, h, t, "dec-map-v17-p-nil")
- testDeepEqualErr(v17v1, v17v2, t, "equal-map-v17-p-nil")
- // ...
- if v == nil {
- v17v2 = nil
- } else {
- v17v2 = make(map[interface{}]bool, len(v))
- } // reset map
- var v17v3, v17v4 typMapMapIntfBool
- v17v3 = typMapMapIntfBool(v17v1)
- v17v4 = typMapMapIntfBool(v17v2)
- bs17 = testMarshalErr(v17v3, h, t, "enc-map-v17-custom")
- testUnmarshalErr(v17v4, bs17, h, t, "dec-map-v17-p-len")
- testDeepEqualErr(v17v3, v17v4, t, "equal-map-v17-p-len")
- }
- for _, v := range []map[string]interface{}{nil, {}, {"some-string": nil, "some-string-2": "string-is-an-interface"}} {
- // fmt.Printf(">>>> running mammoth map v20: %v\n", v)
- var v20v1, v20v2 map[string]interface{}
- v20v1 = v
- bs20 := testMarshalErr(v20v1, h, t, "enc-map-v20")
- if v == nil {
- v20v2 = nil
- } else {
- v20v2 = make(map[string]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v20v2, bs20, h, t, "dec-map-v20")
- testDeepEqualErr(v20v1, v20v2, t, "equal-map-v20")
- if v == nil {
- v20v2 = nil
- } else {
- v20v2 = make(map[string]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v20v2), bs20, h, t, "dec-map-v20-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v20v1, v20v2, t, "equal-map-v20-noaddr")
- if v == nil {
- v20v2 = nil
- } else {
- v20v2 = make(map[string]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v20v2, bs20, h, t, "dec-map-v20-p-len")
- testDeepEqualErr(v20v1, v20v2, t, "equal-map-v20-p-len")
- bs20 = testMarshalErr(&v20v1, h, t, "enc-map-v20-p")
- v20v2 = nil
- testUnmarshalErr(&v20v2, bs20, h, t, "dec-map-v20-p-nil")
- testDeepEqualErr(v20v1, v20v2, t, "equal-map-v20-p-nil")
- // ...
- if v == nil {
- v20v2 = nil
- } else {
- v20v2 = make(map[string]interface{}, len(v))
- } // reset map
- var v20v3, v20v4 typMapMapStringIntf
- v20v3 = typMapMapStringIntf(v20v1)
- v20v4 = typMapMapStringIntf(v20v2)
- bs20 = testMarshalErr(v20v3, h, t, "enc-map-v20-custom")
- testUnmarshalErr(v20v4, bs20, h, t, "dec-map-v20-p-len")
- testDeepEqualErr(v20v3, v20v4, t, "equal-map-v20-p-len")
- }
- for _, v := range []map[string]string{nil, {}, {"some-string": "", "some-string-2": "some-string"}} {
- // fmt.Printf(">>>> running mammoth map v21: %v\n", v)
- var v21v1, v21v2 map[string]string
- v21v1 = v
- bs21 := testMarshalErr(v21v1, h, t, "enc-map-v21")
- if v == nil {
- v21v2 = nil
- } else {
- v21v2 = make(map[string]string, len(v))
- } // reset map
- testUnmarshalErr(v21v2, bs21, h, t, "dec-map-v21")
- testDeepEqualErr(v21v1, v21v2, t, "equal-map-v21")
- if v == nil {
- v21v2 = nil
- } else {
- v21v2 = make(map[string]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v21v2), bs21, h, t, "dec-map-v21-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v21v1, v21v2, t, "equal-map-v21-noaddr")
- if v == nil {
- v21v2 = nil
- } else {
- v21v2 = make(map[string]string, len(v))
- } // reset map
- testUnmarshalErr(&v21v2, bs21, h, t, "dec-map-v21-p-len")
- testDeepEqualErr(v21v1, v21v2, t, "equal-map-v21-p-len")
- bs21 = testMarshalErr(&v21v1, h, t, "enc-map-v21-p")
- v21v2 = nil
- testUnmarshalErr(&v21v2, bs21, h, t, "dec-map-v21-p-nil")
- testDeepEqualErr(v21v1, v21v2, t, "equal-map-v21-p-nil")
- // ...
- if v == nil {
- v21v2 = nil
- } else {
- v21v2 = make(map[string]string, len(v))
- } // reset map
- var v21v3, v21v4 typMapMapStringString
- v21v3 = typMapMapStringString(v21v1)
- v21v4 = typMapMapStringString(v21v2)
- bs21 = testMarshalErr(v21v3, h, t, "enc-map-v21-custom")
- testUnmarshalErr(v21v4, bs21, h, t, "dec-map-v21-p-len")
- testDeepEqualErr(v21v3, v21v4, t, "equal-map-v21-p-len")
- }
- for _, v := range []map[string]uint{nil, {}, {"some-string-2": 0, "some-string": 33}} {
- // fmt.Printf(">>>> running mammoth map v22: %v\n", v)
- var v22v1, v22v2 map[string]uint
- v22v1 = v
- bs22 := testMarshalErr(v22v1, h, t, "enc-map-v22")
- if v == nil {
- v22v2 = nil
- } else {
- v22v2 = make(map[string]uint, len(v))
- } // reset map
- testUnmarshalErr(v22v2, bs22, h, t, "dec-map-v22")
- testDeepEqualErr(v22v1, v22v2, t, "equal-map-v22")
- if v == nil {
- v22v2 = nil
- } else {
- v22v2 = make(map[string]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v22v2), bs22, h, t, "dec-map-v22-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v22v1, v22v2, t, "equal-map-v22-noaddr")
- if v == nil {
- v22v2 = nil
- } else {
- v22v2 = make(map[string]uint, len(v))
- } // reset map
- testUnmarshalErr(&v22v2, bs22, h, t, "dec-map-v22-p-len")
- testDeepEqualErr(v22v1, v22v2, t, "equal-map-v22-p-len")
- bs22 = testMarshalErr(&v22v1, h, t, "enc-map-v22-p")
- v22v2 = nil
- testUnmarshalErr(&v22v2, bs22, h, t, "dec-map-v22-p-nil")
- testDeepEqualErr(v22v1, v22v2, t, "equal-map-v22-p-nil")
- // ...
- if v == nil {
- v22v2 = nil
- } else {
- v22v2 = make(map[string]uint, len(v))
- } // reset map
- var v22v3, v22v4 typMapMapStringUint
- v22v3 = typMapMapStringUint(v22v1)
- v22v4 = typMapMapStringUint(v22v2)
- bs22 = testMarshalErr(v22v3, h, t, "enc-map-v22-custom")
- testUnmarshalErr(v22v4, bs22, h, t, "dec-map-v22-p-len")
- testDeepEqualErr(v22v3, v22v4, t, "equal-map-v22-p-len")
- }
- for _, v := range []map[string]uint8{nil, {}, {"some-string-2": 0, "some-string": 44}} {
- // fmt.Printf(">>>> running mammoth map v23: %v\n", v)
- var v23v1, v23v2 map[string]uint8
- v23v1 = v
- bs23 := testMarshalErr(v23v1, h, t, "enc-map-v23")
- if v == nil {
- v23v2 = nil
- } else {
- v23v2 = make(map[string]uint8, len(v))
- } // reset map
- testUnmarshalErr(v23v2, bs23, h, t, "dec-map-v23")
- testDeepEqualErr(v23v1, v23v2, t, "equal-map-v23")
- if v == nil {
- v23v2 = nil
- } else {
- v23v2 = make(map[string]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v23v2), bs23, h, t, "dec-map-v23-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v23v1, v23v2, t, "equal-map-v23-noaddr")
- if v == nil {
- v23v2 = nil
- } else {
- v23v2 = make(map[string]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v23v2, bs23, h, t, "dec-map-v23-p-len")
- testDeepEqualErr(v23v1, v23v2, t, "equal-map-v23-p-len")
- bs23 = testMarshalErr(&v23v1, h, t, "enc-map-v23-p")
- v23v2 = nil
- testUnmarshalErr(&v23v2, bs23, h, t, "dec-map-v23-p-nil")
- testDeepEqualErr(v23v1, v23v2, t, "equal-map-v23-p-nil")
- // ...
- if v == nil {
- v23v2 = nil
- } else {
- v23v2 = make(map[string]uint8, len(v))
- } // reset map
- var v23v3, v23v4 typMapMapStringUint8
- v23v3 = typMapMapStringUint8(v23v1)
- v23v4 = typMapMapStringUint8(v23v2)
- bs23 = testMarshalErr(v23v3, h, t, "enc-map-v23-custom")
- testUnmarshalErr(v23v4, bs23, h, t, "dec-map-v23-p-len")
- testDeepEqualErr(v23v3, v23v4, t, "equal-map-v23-p-len")
- }
- for _, v := range []map[string]uint16{nil, {}, {"some-string-2": 0, "some-string": 33}} {
- // fmt.Printf(">>>> running mammoth map v24: %v\n", v)
- var v24v1, v24v2 map[string]uint16
- v24v1 = v
- bs24 := testMarshalErr(v24v1, h, t, "enc-map-v24")
- if v == nil {
- v24v2 = nil
- } else {
- v24v2 = make(map[string]uint16, len(v))
- } // reset map
- testUnmarshalErr(v24v2, bs24, h, t, "dec-map-v24")
- testDeepEqualErr(v24v1, v24v2, t, "equal-map-v24")
- if v == nil {
- v24v2 = nil
- } else {
- v24v2 = make(map[string]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v24v2), bs24, h, t, "dec-map-v24-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v24v1, v24v2, t, "equal-map-v24-noaddr")
- if v == nil {
- v24v2 = nil
- } else {
- v24v2 = make(map[string]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v24v2, bs24, h, t, "dec-map-v24-p-len")
- testDeepEqualErr(v24v1, v24v2, t, "equal-map-v24-p-len")
- bs24 = testMarshalErr(&v24v1, h, t, "enc-map-v24-p")
- v24v2 = nil
- testUnmarshalErr(&v24v2, bs24, h, t, "dec-map-v24-p-nil")
- testDeepEqualErr(v24v1, v24v2, t, "equal-map-v24-p-nil")
- // ...
- if v == nil {
- v24v2 = nil
- } else {
- v24v2 = make(map[string]uint16, len(v))
- } // reset map
- var v24v3, v24v4 typMapMapStringUint16
- v24v3 = typMapMapStringUint16(v24v1)
- v24v4 = typMapMapStringUint16(v24v2)
- bs24 = testMarshalErr(v24v3, h, t, "enc-map-v24-custom")
- testUnmarshalErr(v24v4, bs24, h, t, "dec-map-v24-p-len")
- testDeepEqualErr(v24v3, v24v4, t, "equal-map-v24-p-len")
- }
- for _, v := range []map[string]uint32{nil, {}, {"some-string-2": 0, "some-string": 44}} {
- // fmt.Printf(">>>> running mammoth map v25: %v\n", v)
- var v25v1, v25v2 map[string]uint32
- v25v1 = v
- bs25 := testMarshalErr(v25v1, h, t, "enc-map-v25")
- if v == nil {
- v25v2 = nil
- } else {
- v25v2 = make(map[string]uint32, len(v))
- } // reset map
- testUnmarshalErr(v25v2, bs25, h, t, "dec-map-v25")
- testDeepEqualErr(v25v1, v25v2, t, "equal-map-v25")
- if v == nil {
- v25v2 = nil
- } else {
- v25v2 = make(map[string]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v25v2), bs25, h, t, "dec-map-v25-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v25v1, v25v2, t, "equal-map-v25-noaddr")
- if v == nil {
- v25v2 = nil
- } else {
- v25v2 = make(map[string]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v25v2, bs25, h, t, "dec-map-v25-p-len")
- testDeepEqualErr(v25v1, v25v2, t, "equal-map-v25-p-len")
- bs25 = testMarshalErr(&v25v1, h, t, "enc-map-v25-p")
- v25v2 = nil
- testUnmarshalErr(&v25v2, bs25, h, t, "dec-map-v25-p-nil")
- testDeepEqualErr(v25v1, v25v2, t, "equal-map-v25-p-nil")
- // ...
- if v == nil {
- v25v2 = nil
- } else {
- v25v2 = make(map[string]uint32, len(v))
- } // reset map
- var v25v3, v25v4 typMapMapStringUint32
- v25v3 = typMapMapStringUint32(v25v1)
- v25v4 = typMapMapStringUint32(v25v2)
- bs25 = testMarshalErr(v25v3, h, t, "enc-map-v25-custom")
- testUnmarshalErr(v25v4, bs25, h, t, "dec-map-v25-p-len")
- testDeepEqualErr(v25v3, v25v4, t, "equal-map-v25-p-len")
- }
- for _, v := range []map[string]uint64{nil, {}, {"some-string-2": 0, "some-string": 33}} {
- // fmt.Printf(">>>> running mammoth map v26: %v\n", v)
- var v26v1, v26v2 map[string]uint64
- v26v1 = v
- bs26 := testMarshalErr(v26v1, h, t, "enc-map-v26")
- if v == nil {
- v26v2 = nil
- } else {
- v26v2 = make(map[string]uint64, len(v))
- } // reset map
- testUnmarshalErr(v26v2, bs26, h, t, "dec-map-v26")
- testDeepEqualErr(v26v1, v26v2, t, "equal-map-v26")
- if v == nil {
- v26v2 = nil
- } else {
- v26v2 = make(map[string]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v26v2), bs26, h, t, "dec-map-v26-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v26v1, v26v2, t, "equal-map-v26-noaddr")
- if v == nil {
- v26v2 = nil
- } else {
- v26v2 = make(map[string]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v26v2, bs26, h, t, "dec-map-v26-p-len")
- testDeepEqualErr(v26v1, v26v2, t, "equal-map-v26-p-len")
- bs26 = testMarshalErr(&v26v1, h, t, "enc-map-v26-p")
- v26v2 = nil
- testUnmarshalErr(&v26v2, bs26, h, t, "dec-map-v26-p-nil")
- testDeepEqualErr(v26v1, v26v2, t, "equal-map-v26-p-nil")
- // ...
- if v == nil {
- v26v2 = nil
- } else {
- v26v2 = make(map[string]uint64, len(v))
- } // reset map
- var v26v3, v26v4 typMapMapStringUint64
- v26v3 = typMapMapStringUint64(v26v1)
- v26v4 = typMapMapStringUint64(v26v2)
- bs26 = testMarshalErr(v26v3, h, t, "enc-map-v26-custom")
- testUnmarshalErr(v26v4, bs26, h, t, "dec-map-v26-p-len")
- testDeepEqualErr(v26v3, v26v4, t, "equal-map-v26-p-len")
- }
- for _, v := range []map[string]uintptr{nil, {}, {"some-string-2": 0, "some-string": 44}} {
- // fmt.Printf(">>>> running mammoth map v27: %v\n", v)
- var v27v1, v27v2 map[string]uintptr
- v27v1 = v
- bs27 := testMarshalErr(v27v1, h, t, "enc-map-v27")
- if v == nil {
- v27v2 = nil
- } else {
- v27v2 = make(map[string]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v27v2, bs27, h, t, "dec-map-v27")
- testDeepEqualErr(v27v1, v27v2, t, "equal-map-v27")
- if v == nil {
- v27v2 = nil
- } else {
- v27v2 = make(map[string]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v27v2), bs27, h, t, "dec-map-v27-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v27v1, v27v2, t, "equal-map-v27-noaddr")
- if v == nil {
- v27v2 = nil
- } else {
- v27v2 = make(map[string]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v27v2, bs27, h, t, "dec-map-v27-p-len")
- testDeepEqualErr(v27v1, v27v2, t, "equal-map-v27-p-len")
- bs27 = testMarshalErr(&v27v1, h, t, "enc-map-v27-p")
- v27v2 = nil
- testUnmarshalErr(&v27v2, bs27, h, t, "dec-map-v27-p-nil")
- testDeepEqualErr(v27v1, v27v2, t, "equal-map-v27-p-nil")
- // ...
- if v == nil {
- v27v2 = nil
- } else {
- v27v2 = make(map[string]uintptr, len(v))
- } // reset map
- var v27v3, v27v4 typMapMapStringUintptr
- v27v3 = typMapMapStringUintptr(v27v1)
- v27v4 = typMapMapStringUintptr(v27v2)
- bs27 = testMarshalErr(v27v3, h, t, "enc-map-v27-custom")
- testUnmarshalErr(v27v4, bs27, h, t, "dec-map-v27-p-len")
- testDeepEqualErr(v27v3, v27v4, t, "equal-map-v27-p-len")
- }
- for _, v := range []map[string]int{nil, {}, {"some-string-2": 0, "some-string": 33}} {
- // fmt.Printf(">>>> running mammoth map v28: %v\n", v)
- var v28v1, v28v2 map[string]int
- v28v1 = v
- bs28 := testMarshalErr(v28v1, h, t, "enc-map-v28")
- if v == nil {
- v28v2 = nil
- } else {
- v28v2 = make(map[string]int, len(v))
- } // reset map
- testUnmarshalErr(v28v2, bs28, h, t, "dec-map-v28")
- testDeepEqualErr(v28v1, v28v2, t, "equal-map-v28")
- if v == nil {
- v28v2 = nil
- } else {
- v28v2 = make(map[string]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v28v2), bs28, h, t, "dec-map-v28-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v28v1, v28v2, t, "equal-map-v28-noaddr")
- if v == nil {
- v28v2 = nil
- } else {
- v28v2 = make(map[string]int, len(v))
- } // reset map
- testUnmarshalErr(&v28v2, bs28, h, t, "dec-map-v28-p-len")
- testDeepEqualErr(v28v1, v28v2, t, "equal-map-v28-p-len")
- bs28 = testMarshalErr(&v28v1, h, t, "enc-map-v28-p")
- v28v2 = nil
- testUnmarshalErr(&v28v2, bs28, h, t, "dec-map-v28-p-nil")
- testDeepEqualErr(v28v1, v28v2, t, "equal-map-v28-p-nil")
- // ...
- if v == nil {
- v28v2 = nil
- } else {
- v28v2 = make(map[string]int, len(v))
- } // reset map
- var v28v3, v28v4 typMapMapStringInt
- v28v3 = typMapMapStringInt(v28v1)
- v28v4 = typMapMapStringInt(v28v2)
- bs28 = testMarshalErr(v28v3, h, t, "enc-map-v28-custom")
- testUnmarshalErr(v28v4, bs28, h, t, "dec-map-v28-p-len")
- testDeepEqualErr(v28v3, v28v4, t, "equal-map-v28-p-len")
- }
- for _, v := range []map[string]int8{nil, {}, {"some-string-2": 0, "some-string": 44}} {
- // fmt.Printf(">>>> running mammoth map v29: %v\n", v)
- var v29v1, v29v2 map[string]int8
- v29v1 = v
- bs29 := testMarshalErr(v29v1, h, t, "enc-map-v29")
- if v == nil {
- v29v2 = nil
- } else {
- v29v2 = make(map[string]int8, len(v))
- } // reset map
- testUnmarshalErr(v29v2, bs29, h, t, "dec-map-v29")
- testDeepEqualErr(v29v1, v29v2, t, "equal-map-v29")
- if v == nil {
- v29v2 = nil
- } else {
- v29v2 = make(map[string]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v29v2), bs29, h, t, "dec-map-v29-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v29v1, v29v2, t, "equal-map-v29-noaddr")
- if v == nil {
- v29v2 = nil
- } else {
- v29v2 = make(map[string]int8, len(v))
- } // reset map
- testUnmarshalErr(&v29v2, bs29, h, t, "dec-map-v29-p-len")
- testDeepEqualErr(v29v1, v29v2, t, "equal-map-v29-p-len")
- bs29 = testMarshalErr(&v29v1, h, t, "enc-map-v29-p")
- v29v2 = nil
- testUnmarshalErr(&v29v2, bs29, h, t, "dec-map-v29-p-nil")
- testDeepEqualErr(v29v1, v29v2, t, "equal-map-v29-p-nil")
- // ...
- if v == nil {
- v29v2 = nil
- } else {
- v29v2 = make(map[string]int8, len(v))
- } // reset map
- var v29v3, v29v4 typMapMapStringInt8
- v29v3 = typMapMapStringInt8(v29v1)
- v29v4 = typMapMapStringInt8(v29v2)
- bs29 = testMarshalErr(v29v3, h, t, "enc-map-v29-custom")
- testUnmarshalErr(v29v4, bs29, h, t, "dec-map-v29-p-len")
- testDeepEqualErr(v29v3, v29v4, t, "equal-map-v29-p-len")
- }
- for _, v := range []map[string]int16{nil, {}, {"some-string-2": 0, "some-string": 33}} {
- // fmt.Printf(">>>> running mammoth map v30: %v\n", v)
- var v30v1, v30v2 map[string]int16
- v30v1 = v
- bs30 := testMarshalErr(v30v1, h, t, "enc-map-v30")
- if v == nil {
- v30v2 = nil
- } else {
- v30v2 = make(map[string]int16, len(v))
- } // reset map
- testUnmarshalErr(v30v2, bs30, h, t, "dec-map-v30")
- testDeepEqualErr(v30v1, v30v2, t, "equal-map-v30")
- if v == nil {
- v30v2 = nil
- } else {
- v30v2 = make(map[string]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v30v2), bs30, h, t, "dec-map-v30-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v30v1, v30v2, t, "equal-map-v30-noaddr")
- if v == nil {
- v30v2 = nil
- } else {
- v30v2 = make(map[string]int16, len(v))
- } // reset map
- testUnmarshalErr(&v30v2, bs30, h, t, "dec-map-v30-p-len")
- testDeepEqualErr(v30v1, v30v2, t, "equal-map-v30-p-len")
- bs30 = testMarshalErr(&v30v1, h, t, "enc-map-v30-p")
- v30v2 = nil
- testUnmarshalErr(&v30v2, bs30, h, t, "dec-map-v30-p-nil")
- testDeepEqualErr(v30v1, v30v2, t, "equal-map-v30-p-nil")
- // ...
- if v == nil {
- v30v2 = nil
- } else {
- v30v2 = make(map[string]int16, len(v))
- } // reset map
- var v30v3, v30v4 typMapMapStringInt16
- v30v3 = typMapMapStringInt16(v30v1)
- v30v4 = typMapMapStringInt16(v30v2)
- bs30 = testMarshalErr(v30v3, h, t, "enc-map-v30-custom")
- testUnmarshalErr(v30v4, bs30, h, t, "dec-map-v30-p-len")
- testDeepEqualErr(v30v3, v30v4, t, "equal-map-v30-p-len")
- }
- for _, v := range []map[string]int32{nil, {}, {"some-string-2": 0, "some-string": 44}} {
- // fmt.Printf(">>>> running mammoth map v31: %v\n", v)
- var v31v1, v31v2 map[string]int32
- v31v1 = v
- bs31 := testMarshalErr(v31v1, h, t, "enc-map-v31")
- if v == nil {
- v31v2 = nil
- } else {
- v31v2 = make(map[string]int32, len(v))
- } // reset map
- testUnmarshalErr(v31v2, bs31, h, t, "dec-map-v31")
- testDeepEqualErr(v31v1, v31v2, t, "equal-map-v31")
- if v == nil {
- v31v2 = nil
- } else {
- v31v2 = make(map[string]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v31v2), bs31, h, t, "dec-map-v31-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v31v1, v31v2, t, "equal-map-v31-noaddr")
- if v == nil {
- v31v2 = nil
- } else {
- v31v2 = make(map[string]int32, len(v))
- } // reset map
- testUnmarshalErr(&v31v2, bs31, h, t, "dec-map-v31-p-len")
- testDeepEqualErr(v31v1, v31v2, t, "equal-map-v31-p-len")
- bs31 = testMarshalErr(&v31v1, h, t, "enc-map-v31-p")
- v31v2 = nil
- testUnmarshalErr(&v31v2, bs31, h, t, "dec-map-v31-p-nil")
- testDeepEqualErr(v31v1, v31v2, t, "equal-map-v31-p-nil")
- // ...
- if v == nil {
- v31v2 = nil
- } else {
- v31v2 = make(map[string]int32, len(v))
- } // reset map
- var v31v3, v31v4 typMapMapStringInt32
- v31v3 = typMapMapStringInt32(v31v1)
- v31v4 = typMapMapStringInt32(v31v2)
- bs31 = testMarshalErr(v31v3, h, t, "enc-map-v31-custom")
- testUnmarshalErr(v31v4, bs31, h, t, "dec-map-v31-p-len")
- testDeepEqualErr(v31v3, v31v4, t, "equal-map-v31-p-len")
- }
- for _, v := range []map[string]int64{nil, {}, {"some-string-2": 0, "some-string": 33}} {
- // fmt.Printf(">>>> running mammoth map v32: %v\n", v)
- var v32v1, v32v2 map[string]int64
- v32v1 = v
- bs32 := testMarshalErr(v32v1, h, t, "enc-map-v32")
- if v == nil {
- v32v2 = nil
- } else {
- v32v2 = make(map[string]int64, len(v))
- } // reset map
- testUnmarshalErr(v32v2, bs32, h, t, "dec-map-v32")
- testDeepEqualErr(v32v1, v32v2, t, "equal-map-v32")
- if v == nil {
- v32v2 = nil
- } else {
- v32v2 = make(map[string]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v32v2), bs32, h, t, "dec-map-v32-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v32v1, v32v2, t, "equal-map-v32-noaddr")
- if v == nil {
- v32v2 = nil
- } else {
- v32v2 = make(map[string]int64, len(v))
- } // reset map
- testUnmarshalErr(&v32v2, bs32, h, t, "dec-map-v32-p-len")
- testDeepEqualErr(v32v1, v32v2, t, "equal-map-v32-p-len")
- bs32 = testMarshalErr(&v32v1, h, t, "enc-map-v32-p")
- v32v2 = nil
- testUnmarshalErr(&v32v2, bs32, h, t, "dec-map-v32-p-nil")
- testDeepEqualErr(v32v1, v32v2, t, "equal-map-v32-p-nil")
- // ...
- if v == nil {
- v32v2 = nil
- } else {
- v32v2 = make(map[string]int64, len(v))
- } // reset map
- var v32v3, v32v4 typMapMapStringInt64
- v32v3 = typMapMapStringInt64(v32v1)
- v32v4 = typMapMapStringInt64(v32v2)
- bs32 = testMarshalErr(v32v3, h, t, "enc-map-v32-custom")
- testUnmarshalErr(v32v4, bs32, h, t, "dec-map-v32-p-len")
- testDeepEqualErr(v32v3, v32v4, t, "equal-map-v32-p-len")
- }
- for _, v := range []map[string]float32{nil, {}, {"some-string-2": 0, "some-string": 22.2}} {
- // fmt.Printf(">>>> running mammoth map v33: %v\n", v)
- var v33v1, v33v2 map[string]float32
- v33v1 = v
- bs33 := testMarshalErr(v33v1, h, t, "enc-map-v33")
- if v == nil {
- v33v2 = nil
- } else {
- v33v2 = make(map[string]float32, len(v))
- } // reset map
- testUnmarshalErr(v33v2, bs33, h, t, "dec-map-v33")
- testDeepEqualErr(v33v1, v33v2, t, "equal-map-v33")
- if v == nil {
- v33v2 = nil
- } else {
- v33v2 = make(map[string]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v33v2), bs33, h, t, "dec-map-v33-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v33v1, v33v2, t, "equal-map-v33-noaddr")
- if v == nil {
- v33v2 = nil
- } else {
- v33v2 = make(map[string]float32, len(v))
- } // reset map
- testUnmarshalErr(&v33v2, bs33, h, t, "dec-map-v33-p-len")
- testDeepEqualErr(v33v1, v33v2, t, "equal-map-v33-p-len")
- bs33 = testMarshalErr(&v33v1, h, t, "enc-map-v33-p")
- v33v2 = nil
- testUnmarshalErr(&v33v2, bs33, h, t, "dec-map-v33-p-nil")
- testDeepEqualErr(v33v1, v33v2, t, "equal-map-v33-p-nil")
- // ...
- if v == nil {
- v33v2 = nil
- } else {
- v33v2 = make(map[string]float32, len(v))
- } // reset map
- var v33v3, v33v4 typMapMapStringFloat32
- v33v3 = typMapMapStringFloat32(v33v1)
- v33v4 = typMapMapStringFloat32(v33v2)
- bs33 = testMarshalErr(v33v3, h, t, "enc-map-v33-custom")
- testUnmarshalErr(v33v4, bs33, h, t, "dec-map-v33-p-len")
- testDeepEqualErr(v33v3, v33v4, t, "equal-map-v33-p-len")
- }
- for _, v := range []map[string]float64{nil, {}, {"some-string-2": 0, "some-string": 11.1}} {
- // fmt.Printf(">>>> running mammoth map v34: %v\n", v)
- var v34v1, v34v2 map[string]float64
- v34v1 = v
- bs34 := testMarshalErr(v34v1, h, t, "enc-map-v34")
- if v == nil {
- v34v2 = nil
- } else {
- v34v2 = make(map[string]float64, len(v))
- } // reset map
- testUnmarshalErr(v34v2, bs34, h, t, "dec-map-v34")
- testDeepEqualErr(v34v1, v34v2, t, "equal-map-v34")
- if v == nil {
- v34v2 = nil
- } else {
- v34v2 = make(map[string]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v34v2), bs34, h, t, "dec-map-v34-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v34v1, v34v2, t, "equal-map-v34-noaddr")
- if v == nil {
- v34v2 = nil
- } else {
- v34v2 = make(map[string]float64, len(v))
- } // reset map
- testUnmarshalErr(&v34v2, bs34, h, t, "dec-map-v34-p-len")
- testDeepEqualErr(v34v1, v34v2, t, "equal-map-v34-p-len")
- bs34 = testMarshalErr(&v34v1, h, t, "enc-map-v34-p")
- v34v2 = nil
- testUnmarshalErr(&v34v2, bs34, h, t, "dec-map-v34-p-nil")
- testDeepEqualErr(v34v1, v34v2, t, "equal-map-v34-p-nil")
- // ...
- if v == nil {
- v34v2 = nil
- } else {
- v34v2 = make(map[string]float64, len(v))
- } // reset map
- var v34v3, v34v4 typMapMapStringFloat64
- v34v3 = typMapMapStringFloat64(v34v1)
- v34v4 = typMapMapStringFloat64(v34v2)
- bs34 = testMarshalErr(v34v3, h, t, "enc-map-v34-custom")
- testUnmarshalErr(v34v4, bs34, h, t, "dec-map-v34-p-len")
- testDeepEqualErr(v34v3, v34v4, t, "equal-map-v34-p-len")
- }
- for _, v := range []map[string]bool{nil, {}, {"some-string-2": false, "some-string": true}} {
- // fmt.Printf(">>>> running mammoth map v35: %v\n", v)
- var v35v1, v35v2 map[string]bool
- v35v1 = v
- bs35 := testMarshalErr(v35v1, h, t, "enc-map-v35")
- if v == nil {
- v35v2 = nil
- } else {
- v35v2 = make(map[string]bool, len(v))
- } // reset map
- testUnmarshalErr(v35v2, bs35, h, t, "dec-map-v35")
- testDeepEqualErr(v35v1, v35v2, t, "equal-map-v35")
- if v == nil {
- v35v2 = nil
- } else {
- v35v2 = make(map[string]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v35v2), bs35, h, t, "dec-map-v35-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v35v1, v35v2, t, "equal-map-v35-noaddr")
- if v == nil {
- v35v2 = nil
- } else {
- v35v2 = make(map[string]bool, len(v))
- } // reset map
- testUnmarshalErr(&v35v2, bs35, h, t, "dec-map-v35-p-len")
- testDeepEqualErr(v35v1, v35v2, t, "equal-map-v35-p-len")
- bs35 = testMarshalErr(&v35v1, h, t, "enc-map-v35-p")
- v35v2 = nil
- testUnmarshalErr(&v35v2, bs35, h, t, "dec-map-v35-p-nil")
- testDeepEqualErr(v35v1, v35v2, t, "equal-map-v35-p-nil")
- // ...
- if v == nil {
- v35v2 = nil
- } else {
- v35v2 = make(map[string]bool, len(v))
- } // reset map
- var v35v3, v35v4 typMapMapStringBool
- v35v3 = typMapMapStringBool(v35v1)
- v35v4 = typMapMapStringBool(v35v2)
- bs35 = testMarshalErr(v35v3, h, t, "enc-map-v35-custom")
- testUnmarshalErr(v35v4, bs35, h, t, "dec-map-v35-p-len")
- testDeepEqualErr(v35v3, v35v4, t, "equal-map-v35-p-len")
- }
- for _, v := range []map[float32]interface{}{nil, {}, {22.2: nil, 11.1: "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v38: %v\n", v)
- var v38v1, v38v2 map[float32]interface{}
- v38v1 = v
- bs38 := testMarshalErr(v38v1, h, t, "enc-map-v38")
- if v == nil {
- v38v2 = nil
- } else {
- v38v2 = make(map[float32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v38v2, bs38, h, t, "dec-map-v38")
- testDeepEqualErr(v38v1, v38v2, t, "equal-map-v38")
- if v == nil {
- v38v2 = nil
- } else {
- v38v2 = make(map[float32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v38v2), bs38, h, t, "dec-map-v38-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v38v1, v38v2, t, "equal-map-v38-noaddr")
- if v == nil {
- v38v2 = nil
- } else {
- v38v2 = make(map[float32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v38v2, bs38, h, t, "dec-map-v38-p-len")
- testDeepEqualErr(v38v1, v38v2, t, "equal-map-v38-p-len")
- bs38 = testMarshalErr(&v38v1, h, t, "enc-map-v38-p")
- v38v2 = nil
- testUnmarshalErr(&v38v2, bs38, h, t, "dec-map-v38-p-nil")
- testDeepEqualErr(v38v1, v38v2, t, "equal-map-v38-p-nil")
- // ...
- if v == nil {
- v38v2 = nil
- } else {
- v38v2 = make(map[float32]interface{}, len(v))
- } // reset map
- var v38v3, v38v4 typMapMapFloat32Intf
- v38v3 = typMapMapFloat32Intf(v38v1)
- v38v4 = typMapMapFloat32Intf(v38v2)
- bs38 = testMarshalErr(v38v3, h, t, "enc-map-v38-custom")
- testUnmarshalErr(v38v4, bs38, h, t, "dec-map-v38-p-len")
- testDeepEqualErr(v38v3, v38v4, t, "equal-map-v38-p-len")
- }
- for _, v := range []map[float32]string{nil, {}, {22.2: "", 11.1: "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v39: %v\n", v)
- var v39v1, v39v2 map[float32]string
- v39v1 = v
- bs39 := testMarshalErr(v39v1, h, t, "enc-map-v39")
- if v == nil {
- v39v2 = nil
- } else {
- v39v2 = make(map[float32]string, len(v))
- } // reset map
- testUnmarshalErr(v39v2, bs39, h, t, "dec-map-v39")
- testDeepEqualErr(v39v1, v39v2, t, "equal-map-v39")
- if v == nil {
- v39v2 = nil
- } else {
- v39v2 = make(map[float32]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v39v2), bs39, h, t, "dec-map-v39-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v39v1, v39v2, t, "equal-map-v39-noaddr")
- if v == nil {
- v39v2 = nil
- } else {
- v39v2 = make(map[float32]string, len(v))
- } // reset map
- testUnmarshalErr(&v39v2, bs39, h, t, "dec-map-v39-p-len")
- testDeepEqualErr(v39v1, v39v2, t, "equal-map-v39-p-len")
- bs39 = testMarshalErr(&v39v1, h, t, "enc-map-v39-p")
- v39v2 = nil
- testUnmarshalErr(&v39v2, bs39, h, t, "dec-map-v39-p-nil")
- testDeepEqualErr(v39v1, v39v2, t, "equal-map-v39-p-nil")
- // ...
- if v == nil {
- v39v2 = nil
- } else {
- v39v2 = make(map[float32]string, len(v))
- } // reset map
- var v39v3, v39v4 typMapMapFloat32String
- v39v3 = typMapMapFloat32String(v39v1)
- v39v4 = typMapMapFloat32String(v39v2)
- bs39 = testMarshalErr(v39v3, h, t, "enc-map-v39-custom")
- testUnmarshalErr(v39v4, bs39, h, t, "dec-map-v39-p-len")
- testDeepEqualErr(v39v3, v39v4, t, "equal-map-v39-p-len")
- }
- for _, v := range []map[float32]uint{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v40: %v\n", v)
- var v40v1, v40v2 map[float32]uint
- v40v1 = v
- bs40 := testMarshalErr(v40v1, h, t, "enc-map-v40")
- if v == nil {
- v40v2 = nil
- } else {
- v40v2 = make(map[float32]uint, len(v))
- } // reset map
- testUnmarshalErr(v40v2, bs40, h, t, "dec-map-v40")
- testDeepEqualErr(v40v1, v40v2, t, "equal-map-v40")
- if v == nil {
- v40v2 = nil
- } else {
- v40v2 = make(map[float32]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v40v2), bs40, h, t, "dec-map-v40-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v40v1, v40v2, t, "equal-map-v40-noaddr")
- if v == nil {
- v40v2 = nil
- } else {
- v40v2 = make(map[float32]uint, len(v))
- } // reset map
- testUnmarshalErr(&v40v2, bs40, h, t, "dec-map-v40-p-len")
- testDeepEqualErr(v40v1, v40v2, t, "equal-map-v40-p-len")
- bs40 = testMarshalErr(&v40v1, h, t, "enc-map-v40-p")
- v40v2 = nil
- testUnmarshalErr(&v40v2, bs40, h, t, "dec-map-v40-p-nil")
- testDeepEqualErr(v40v1, v40v2, t, "equal-map-v40-p-nil")
- // ...
- if v == nil {
- v40v2 = nil
- } else {
- v40v2 = make(map[float32]uint, len(v))
- } // reset map
- var v40v3, v40v4 typMapMapFloat32Uint
- v40v3 = typMapMapFloat32Uint(v40v1)
- v40v4 = typMapMapFloat32Uint(v40v2)
- bs40 = testMarshalErr(v40v3, h, t, "enc-map-v40-custom")
- testUnmarshalErr(v40v4, bs40, h, t, "dec-map-v40-p-len")
- testDeepEqualErr(v40v3, v40v4, t, "equal-map-v40-p-len")
- }
- for _, v := range []map[float32]uint8{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v41: %v\n", v)
- var v41v1, v41v2 map[float32]uint8
- v41v1 = v
- bs41 := testMarshalErr(v41v1, h, t, "enc-map-v41")
- if v == nil {
- v41v2 = nil
- } else {
- v41v2 = make(map[float32]uint8, len(v))
- } // reset map
- testUnmarshalErr(v41v2, bs41, h, t, "dec-map-v41")
- testDeepEqualErr(v41v1, v41v2, t, "equal-map-v41")
- if v == nil {
- v41v2 = nil
- } else {
- v41v2 = make(map[float32]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v41v2), bs41, h, t, "dec-map-v41-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v41v1, v41v2, t, "equal-map-v41-noaddr")
- if v == nil {
- v41v2 = nil
- } else {
- v41v2 = make(map[float32]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v41v2, bs41, h, t, "dec-map-v41-p-len")
- testDeepEqualErr(v41v1, v41v2, t, "equal-map-v41-p-len")
- bs41 = testMarshalErr(&v41v1, h, t, "enc-map-v41-p")
- v41v2 = nil
- testUnmarshalErr(&v41v2, bs41, h, t, "dec-map-v41-p-nil")
- testDeepEqualErr(v41v1, v41v2, t, "equal-map-v41-p-nil")
- // ...
- if v == nil {
- v41v2 = nil
- } else {
- v41v2 = make(map[float32]uint8, len(v))
- } // reset map
- var v41v3, v41v4 typMapMapFloat32Uint8
- v41v3 = typMapMapFloat32Uint8(v41v1)
- v41v4 = typMapMapFloat32Uint8(v41v2)
- bs41 = testMarshalErr(v41v3, h, t, "enc-map-v41-custom")
- testUnmarshalErr(v41v4, bs41, h, t, "dec-map-v41-p-len")
- testDeepEqualErr(v41v3, v41v4, t, "equal-map-v41-p-len")
- }
- for _, v := range []map[float32]uint16{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v42: %v\n", v)
- var v42v1, v42v2 map[float32]uint16
- v42v1 = v
- bs42 := testMarshalErr(v42v1, h, t, "enc-map-v42")
- if v == nil {
- v42v2 = nil
- } else {
- v42v2 = make(map[float32]uint16, len(v))
- } // reset map
- testUnmarshalErr(v42v2, bs42, h, t, "dec-map-v42")
- testDeepEqualErr(v42v1, v42v2, t, "equal-map-v42")
- if v == nil {
- v42v2 = nil
- } else {
- v42v2 = make(map[float32]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v42v2), bs42, h, t, "dec-map-v42-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v42v1, v42v2, t, "equal-map-v42-noaddr")
- if v == nil {
- v42v2 = nil
- } else {
- v42v2 = make(map[float32]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v42v2, bs42, h, t, "dec-map-v42-p-len")
- testDeepEqualErr(v42v1, v42v2, t, "equal-map-v42-p-len")
- bs42 = testMarshalErr(&v42v1, h, t, "enc-map-v42-p")
- v42v2 = nil
- testUnmarshalErr(&v42v2, bs42, h, t, "dec-map-v42-p-nil")
- testDeepEqualErr(v42v1, v42v2, t, "equal-map-v42-p-nil")
- // ...
- if v == nil {
- v42v2 = nil
- } else {
- v42v2 = make(map[float32]uint16, len(v))
- } // reset map
- var v42v3, v42v4 typMapMapFloat32Uint16
- v42v3 = typMapMapFloat32Uint16(v42v1)
- v42v4 = typMapMapFloat32Uint16(v42v2)
- bs42 = testMarshalErr(v42v3, h, t, "enc-map-v42-custom")
- testUnmarshalErr(v42v4, bs42, h, t, "dec-map-v42-p-len")
- testDeepEqualErr(v42v3, v42v4, t, "equal-map-v42-p-len")
- }
- for _, v := range []map[float32]uint32{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v43: %v\n", v)
- var v43v1, v43v2 map[float32]uint32
- v43v1 = v
- bs43 := testMarshalErr(v43v1, h, t, "enc-map-v43")
- if v == nil {
- v43v2 = nil
- } else {
- v43v2 = make(map[float32]uint32, len(v))
- } // reset map
- testUnmarshalErr(v43v2, bs43, h, t, "dec-map-v43")
- testDeepEqualErr(v43v1, v43v2, t, "equal-map-v43")
- if v == nil {
- v43v2 = nil
- } else {
- v43v2 = make(map[float32]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v43v2), bs43, h, t, "dec-map-v43-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v43v1, v43v2, t, "equal-map-v43-noaddr")
- if v == nil {
- v43v2 = nil
- } else {
- v43v2 = make(map[float32]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v43v2, bs43, h, t, "dec-map-v43-p-len")
- testDeepEqualErr(v43v1, v43v2, t, "equal-map-v43-p-len")
- bs43 = testMarshalErr(&v43v1, h, t, "enc-map-v43-p")
- v43v2 = nil
- testUnmarshalErr(&v43v2, bs43, h, t, "dec-map-v43-p-nil")
- testDeepEqualErr(v43v1, v43v2, t, "equal-map-v43-p-nil")
- // ...
- if v == nil {
- v43v2 = nil
- } else {
- v43v2 = make(map[float32]uint32, len(v))
- } // reset map
- var v43v3, v43v4 typMapMapFloat32Uint32
- v43v3 = typMapMapFloat32Uint32(v43v1)
- v43v4 = typMapMapFloat32Uint32(v43v2)
- bs43 = testMarshalErr(v43v3, h, t, "enc-map-v43-custom")
- testUnmarshalErr(v43v4, bs43, h, t, "dec-map-v43-p-len")
- testDeepEqualErr(v43v3, v43v4, t, "equal-map-v43-p-len")
- }
- for _, v := range []map[float32]uint64{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v44: %v\n", v)
- var v44v1, v44v2 map[float32]uint64
- v44v1 = v
- bs44 := testMarshalErr(v44v1, h, t, "enc-map-v44")
- if v == nil {
- v44v2 = nil
- } else {
- v44v2 = make(map[float32]uint64, len(v))
- } // reset map
- testUnmarshalErr(v44v2, bs44, h, t, "dec-map-v44")
- testDeepEqualErr(v44v1, v44v2, t, "equal-map-v44")
- if v == nil {
- v44v2 = nil
- } else {
- v44v2 = make(map[float32]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v44v2), bs44, h, t, "dec-map-v44-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v44v1, v44v2, t, "equal-map-v44-noaddr")
- if v == nil {
- v44v2 = nil
- } else {
- v44v2 = make(map[float32]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v44v2, bs44, h, t, "dec-map-v44-p-len")
- testDeepEqualErr(v44v1, v44v2, t, "equal-map-v44-p-len")
- bs44 = testMarshalErr(&v44v1, h, t, "enc-map-v44-p")
- v44v2 = nil
- testUnmarshalErr(&v44v2, bs44, h, t, "dec-map-v44-p-nil")
- testDeepEqualErr(v44v1, v44v2, t, "equal-map-v44-p-nil")
- // ...
- if v == nil {
- v44v2 = nil
- } else {
- v44v2 = make(map[float32]uint64, len(v))
- } // reset map
- var v44v3, v44v4 typMapMapFloat32Uint64
- v44v3 = typMapMapFloat32Uint64(v44v1)
- v44v4 = typMapMapFloat32Uint64(v44v2)
- bs44 = testMarshalErr(v44v3, h, t, "enc-map-v44-custom")
- testUnmarshalErr(v44v4, bs44, h, t, "dec-map-v44-p-len")
- testDeepEqualErr(v44v3, v44v4, t, "equal-map-v44-p-len")
- }
- for _, v := range []map[float32]uintptr{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v45: %v\n", v)
- var v45v1, v45v2 map[float32]uintptr
- v45v1 = v
- bs45 := testMarshalErr(v45v1, h, t, "enc-map-v45")
- if v == nil {
- v45v2 = nil
- } else {
- v45v2 = make(map[float32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v45v2, bs45, h, t, "dec-map-v45")
- testDeepEqualErr(v45v1, v45v2, t, "equal-map-v45")
- if v == nil {
- v45v2 = nil
- } else {
- v45v2 = make(map[float32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v45v2), bs45, h, t, "dec-map-v45-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v45v1, v45v2, t, "equal-map-v45-noaddr")
- if v == nil {
- v45v2 = nil
- } else {
- v45v2 = make(map[float32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v45v2, bs45, h, t, "dec-map-v45-p-len")
- testDeepEqualErr(v45v1, v45v2, t, "equal-map-v45-p-len")
- bs45 = testMarshalErr(&v45v1, h, t, "enc-map-v45-p")
- v45v2 = nil
- testUnmarshalErr(&v45v2, bs45, h, t, "dec-map-v45-p-nil")
- testDeepEqualErr(v45v1, v45v2, t, "equal-map-v45-p-nil")
- // ...
- if v == nil {
- v45v2 = nil
- } else {
- v45v2 = make(map[float32]uintptr, len(v))
- } // reset map
- var v45v3, v45v4 typMapMapFloat32Uintptr
- v45v3 = typMapMapFloat32Uintptr(v45v1)
- v45v4 = typMapMapFloat32Uintptr(v45v2)
- bs45 = testMarshalErr(v45v3, h, t, "enc-map-v45-custom")
- testUnmarshalErr(v45v4, bs45, h, t, "dec-map-v45-p-len")
- testDeepEqualErr(v45v3, v45v4, t, "equal-map-v45-p-len")
- }
- for _, v := range []map[float32]int{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v46: %v\n", v)
- var v46v1, v46v2 map[float32]int
- v46v1 = v
- bs46 := testMarshalErr(v46v1, h, t, "enc-map-v46")
- if v == nil {
- v46v2 = nil
- } else {
- v46v2 = make(map[float32]int, len(v))
- } // reset map
- testUnmarshalErr(v46v2, bs46, h, t, "dec-map-v46")
- testDeepEqualErr(v46v1, v46v2, t, "equal-map-v46")
- if v == nil {
- v46v2 = nil
- } else {
- v46v2 = make(map[float32]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v46v2), bs46, h, t, "dec-map-v46-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v46v1, v46v2, t, "equal-map-v46-noaddr")
- if v == nil {
- v46v2 = nil
- } else {
- v46v2 = make(map[float32]int, len(v))
- } // reset map
- testUnmarshalErr(&v46v2, bs46, h, t, "dec-map-v46-p-len")
- testDeepEqualErr(v46v1, v46v2, t, "equal-map-v46-p-len")
- bs46 = testMarshalErr(&v46v1, h, t, "enc-map-v46-p")
- v46v2 = nil
- testUnmarshalErr(&v46v2, bs46, h, t, "dec-map-v46-p-nil")
- testDeepEqualErr(v46v1, v46v2, t, "equal-map-v46-p-nil")
- // ...
- if v == nil {
- v46v2 = nil
- } else {
- v46v2 = make(map[float32]int, len(v))
- } // reset map
- var v46v3, v46v4 typMapMapFloat32Int
- v46v3 = typMapMapFloat32Int(v46v1)
- v46v4 = typMapMapFloat32Int(v46v2)
- bs46 = testMarshalErr(v46v3, h, t, "enc-map-v46-custom")
- testUnmarshalErr(v46v4, bs46, h, t, "dec-map-v46-p-len")
- testDeepEqualErr(v46v3, v46v4, t, "equal-map-v46-p-len")
- }
- for _, v := range []map[float32]int8{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v47: %v\n", v)
- var v47v1, v47v2 map[float32]int8
- v47v1 = v
- bs47 := testMarshalErr(v47v1, h, t, "enc-map-v47")
- if v == nil {
- v47v2 = nil
- } else {
- v47v2 = make(map[float32]int8, len(v))
- } // reset map
- testUnmarshalErr(v47v2, bs47, h, t, "dec-map-v47")
- testDeepEqualErr(v47v1, v47v2, t, "equal-map-v47")
- if v == nil {
- v47v2 = nil
- } else {
- v47v2 = make(map[float32]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v47v2), bs47, h, t, "dec-map-v47-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v47v1, v47v2, t, "equal-map-v47-noaddr")
- if v == nil {
- v47v2 = nil
- } else {
- v47v2 = make(map[float32]int8, len(v))
- } // reset map
- testUnmarshalErr(&v47v2, bs47, h, t, "dec-map-v47-p-len")
- testDeepEqualErr(v47v1, v47v2, t, "equal-map-v47-p-len")
- bs47 = testMarshalErr(&v47v1, h, t, "enc-map-v47-p")
- v47v2 = nil
- testUnmarshalErr(&v47v2, bs47, h, t, "dec-map-v47-p-nil")
- testDeepEqualErr(v47v1, v47v2, t, "equal-map-v47-p-nil")
- // ...
- if v == nil {
- v47v2 = nil
- } else {
- v47v2 = make(map[float32]int8, len(v))
- } // reset map
- var v47v3, v47v4 typMapMapFloat32Int8
- v47v3 = typMapMapFloat32Int8(v47v1)
- v47v4 = typMapMapFloat32Int8(v47v2)
- bs47 = testMarshalErr(v47v3, h, t, "enc-map-v47-custom")
- testUnmarshalErr(v47v4, bs47, h, t, "dec-map-v47-p-len")
- testDeepEqualErr(v47v3, v47v4, t, "equal-map-v47-p-len")
- }
- for _, v := range []map[float32]int16{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v48: %v\n", v)
- var v48v1, v48v2 map[float32]int16
- v48v1 = v
- bs48 := testMarshalErr(v48v1, h, t, "enc-map-v48")
- if v == nil {
- v48v2 = nil
- } else {
- v48v2 = make(map[float32]int16, len(v))
- } // reset map
- testUnmarshalErr(v48v2, bs48, h, t, "dec-map-v48")
- testDeepEqualErr(v48v1, v48v2, t, "equal-map-v48")
- if v == nil {
- v48v2 = nil
- } else {
- v48v2 = make(map[float32]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v48v2), bs48, h, t, "dec-map-v48-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v48v1, v48v2, t, "equal-map-v48-noaddr")
- if v == nil {
- v48v2 = nil
- } else {
- v48v2 = make(map[float32]int16, len(v))
- } // reset map
- testUnmarshalErr(&v48v2, bs48, h, t, "dec-map-v48-p-len")
- testDeepEqualErr(v48v1, v48v2, t, "equal-map-v48-p-len")
- bs48 = testMarshalErr(&v48v1, h, t, "enc-map-v48-p")
- v48v2 = nil
- testUnmarshalErr(&v48v2, bs48, h, t, "dec-map-v48-p-nil")
- testDeepEqualErr(v48v1, v48v2, t, "equal-map-v48-p-nil")
- // ...
- if v == nil {
- v48v2 = nil
- } else {
- v48v2 = make(map[float32]int16, len(v))
- } // reset map
- var v48v3, v48v4 typMapMapFloat32Int16
- v48v3 = typMapMapFloat32Int16(v48v1)
- v48v4 = typMapMapFloat32Int16(v48v2)
- bs48 = testMarshalErr(v48v3, h, t, "enc-map-v48-custom")
- testUnmarshalErr(v48v4, bs48, h, t, "dec-map-v48-p-len")
- testDeepEqualErr(v48v3, v48v4, t, "equal-map-v48-p-len")
- }
- for _, v := range []map[float32]int32{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v49: %v\n", v)
- var v49v1, v49v2 map[float32]int32
- v49v1 = v
- bs49 := testMarshalErr(v49v1, h, t, "enc-map-v49")
- if v == nil {
- v49v2 = nil
- } else {
- v49v2 = make(map[float32]int32, len(v))
- } // reset map
- testUnmarshalErr(v49v2, bs49, h, t, "dec-map-v49")
- testDeepEqualErr(v49v1, v49v2, t, "equal-map-v49")
- if v == nil {
- v49v2 = nil
- } else {
- v49v2 = make(map[float32]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v49v2), bs49, h, t, "dec-map-v49-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v49v1, v49v2, t, "equal-map-v49-noaddr")
- if v == nil {
- v49v2 = nil
- } else {
- v49v2 = make(map[float32]int32, len(v))
- } // reset map
- testUnmarshalErr(&v49v2, bs49, h, t, "dec-map-v49-p-len")
- testDeepEqualErr(v49v1, v49v2, t, "equal-map-v49-p-len")
- bs49 = testMarshalErr(&v49v1, h, t, "enc-map-v49-p")
- v49v2 = nil
- testUnmarshalErr(&v49v2, bs49, h, t, "dec-map-v49-p-nil")
- testDeepEqualErr(v49v1, v49v2, t, "equal-map-v49-p-nil")
- // ...
- if v == nil {
- v49v2 = nil
- } else {
- v49v2 = make(map[float32]int32, len(v))
- } // reset map
- var v49v3, v49v4 typMapMapFloat32Int32
- v49v3 = typMapMapFloat32Int32(v49v1)
- v49v4 = typMapMapFloat32Int32(v49v2)
- bs49 = testMarshalErr(v49v3, h, t, "enc-map-v49-custom")
- testUnmarshalErr(v49v4, bs49, h, t, "dec-map-v49-p-len")
- testDeepEqualErr(v49v3, v49v4, t, "equal-map-v49-p-len")
- }
- for _, v := range []map[float32]int64{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v50: %v\n", v)
- var v50v1, v50v2 map[float32]int64
- v50v1 = v
- bs50 := testMarshalErr(v50v1, h, t, "enc-map-v50")
- if v == nil {
- v50v2 = nil
- } else {
- v50v2 = make(map[float32]int64, len(v))
- } // reset map
- testUnmarshalErr(v50v2, bs50, h, t, "dec-map-v50")
- testDeepEqualErr(v50v1, v50v2, t, "equal-map-v50")
- if v == nil {
- v50v2 = nil
- } else {
- v50v2 = make(map[float32]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v50v2), bs50, h, t, "dec-map-v50-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v50v1, v50v2, t, "equal-map-v50-noaddr")
- if v == nil {
- v50v2 = nil
- } else {
- v50v2 = make(map[float32]int64, len(v))
- } // reset map
- testUnmarshalErr(&v50v2, bs50, h, t, "dec-map-v50-p-len")
- testDeepEqualErr(v50v1, v50v2, t, "equal-map-v50-p-len")
- bs50 = testMarshalErr(&v50v1, h, t, "enc-map-v50-p")
- v50v2 = nil
- testUnmarshalErr(&v50v2, bs50, h, t, "dec-map-v50-p-nil")
- testDeepEqualErr(v50v1, v50v2, t, "equal-map-v50-p-nil")
- // ...
- if v == nil {
- v50v2 = nil
- } else {
- v50v2 = make(map[float32]int64, len(v))
- } // reset map
- var v50v3, v50v4 typMapMapFloat32Int64
- v50v3 = typMapMapFloat32Int64(v50v1)
- v50v4 = typMapMapFloat32Int64(v50v2)
- bs50 = testMarshalErr(v50v3, h, t, "enc-map-v50-custom")
- testUnmarshalErr(v50v4, bs50, h, t, "dec-map-v50-p-len")
- testDeepEqualErr(v50v3, v50v4, t, "equal-map-v50-p-len")
- }
- for _, v := range []map[float32]float32{nil, {}, {22.2: 0, 11.1: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v51: %v\n", v)
- var v51v1, v51v2 map[float32]float32
- v51v1 = v
- bs51 := testMarshalErr(v51v1, h, t, "enc-map-v51")
- if v == nil {
- v51v2 = nil
- } else {
- v51v2 = make(map[float32]float32, len(v))
- } // reset map
- testUnmarshalErr(v51v2, bs51, h, t, "dec-map-v51")
- testDeepEqualErr(v51v1, v51v2, t, "equal-map-v51")
- if v == nil {
- v51v2 = nil
- } else {
- v51v2 = make(map[float32]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v51v2), bs51, h, t, "dec-map-v51-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v51v1, v51v2, t, "equal-map-v51-noaddr")
- if v == nil {
- v51v2 = nil
- } else {
- v51v2 = make(map[float32]float32, len(v))
- } // reset map
- testUnmarshalErr(&v51v2, bs51, h, t, "dec-map-v51-p-len")
- testDeepEqualErr(v51v1, v51v2, t, "equal-map-v51-p-len")
- bs51 = testMarshalErr(&v51v1, h, t, "enc-map-v51-p")
- v51v2 = nil
- testUnmarshalErr(&v51v2, bs51, h, t, "dec-map-v51-p-nil")
- testDeepEqualErr(v51v1, v51v2, t, "equal-map-v51-p-nil")
- // ...
- if v == nil {
- v51v2 = nil
- } else {
- v51v2 = make(map[float32]float32, len(v))
- } // reset map
- var v51v3, v51v4 typMapMapFloat32Float32
- v51v3 = typMapMapFloat32Float32(v51v1)
- v51v4 = typMapMapFloat32Float32(v51v2)
- bs51 = testMarshalErr(v51v3, h, t, "enc-map-v51-custom")
- testUnmarshalErr(v51v4, bs51, h, t, "dec-map-v51-p-len")
- testDeepEqualErr(v51v3, v51v4, t, "equal-map-v51-p-len")
- }
- for _, v := range []map[float32]float64{nil, {}, {11.1: 0, 22.2: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v52: %v\n", v)
- var v52v1, v52v2 map[float32]float64
- v52v1 = v
- bs52 := testMarshalErr(v52v1, h, t, "enc-map-v52")
- if v == nil {
- v52v2 = nil
- } else {
- v52v2 = make(map[float32]float64, len(v))
- } // reset map
- testUnmarshalErr(v52v2, bs52, h, t, "dec-map-v52")
- testDeepEqualErr(v52v1, v52v2, t, "equal-map-v52")
- if v == nil {
- v52v2 = nil
- } else {
- v52v2 = make(map[float32]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v52v2), bs52, h, t, "dec-map-v52-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v52v1, v52v2, t, "equal-map-v52-noaddr")
- if v == nil {
- v52v2 = nil
- } else {
- v52v2 = make(map[float32]float64, len(v))
- } // reset map
- testUnmarshalErr(&v52v2, bs52, h, t, "dec-map-v52-p-len")
- testDeepEqualErr(v52v1, v52v2, t, "equal-map-v52-p-len")
- bs52 = testMarshalErr(&v52v1, h, t, "enc-map-v52-p")
- v52v2 = nil
- testUnmarshalErr(&v52v2, bs52, h, t, "dec-map-v52-p-nil")
- testDeepEqualErr(v52v1, v52v2, t, "equal-map-v52-p-nil")
- // ...
- if v == nil {
- v52v2 = nil
- } else {
- v52v2 = make(map[float32]float64, len(v))
- } // reset map
- var v52v3, v52v4 typMapMapFloat32Float64
- v52v3 = typMapMapFloat32Float64(v52v1)
- v52v4 = typMapMapFloat32Float64(v52v2)
- bs52 = testMarshalErr(v52v3, h, t, "enc-map-v52-custom")
- testUnmarshalErr(v52v4, bs52, h, t, "dec-map-v52-p-len")
- testDeepEqualErr(v52v3, v52v4, t, "equal-map-v52-p-len")
- }
- for _, v := range []map[float32]bool{nil, {}, {22.2: false, 11.1: true}} {
- // fmt.Printf(">>>> running mammoth map v53: %v\n", v)
- var v53v1, v53v2 map[float32]bool
- v53v1 = v
- bs53 := testMarshalErr(v53v1, h, t, "enc-map-v53")
- if v == nil {
- v53v2 = nil
- } else {
- v53v2 = make(map[float32]bool, len(v))
- } // reset map
- testUnmarshalErr(v53v2, bs53, h, t, "dec-map-v53")
- testDeepEqualErr(v53v1, v53v2, t, "equal-map-v53")
- if v == nil {
- v53v2 = nil
- } else {
- v53v2 = make(map[float32]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v53v2), bs53, h, t, "dec-map-v53-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v53v1, v53v2, t, "equal-map-v53-noaddr")
- if v == nil {
- v53v2 = nil
- } else {
- v53v2 = make(map[float32]bool, len(v))
- } // reset map
- testUnmarshalErr(&v53v2, bs53, h, t, "dec-map-v53-p-len")
- testDeepEqualErr(v53v1, v53v2, t, "equal-map-v53-p-len")
- bs53 = testMarshalErr(&v53v1, h, t, "enc-map-v53-p")
- v53v2 = nil
- testUnmarshalErr(&v53v2, bs53, h, t, "dec-map-v53-p-nil")
- testDeepEqualErr(v53v1, v53v2, t, "equal-map-v53-p-nil")
- // ...
- if v == nil {
- v53v2 = nil
- } else {
- v53v2 = make(map[float32]bool, len(v))
- } // reset map
- var v53v3, v53v4 typMapMapFloat32Bool
- v53v3 = typMapMapFloat32Bool(v53v1)
- v53v4 = typMapMapFloat32Bool(v53v2)
- bs53 = testMarshalErr(v53v3, h, t, "enc-map-v53-custom")
- testUnmarshalErr(v53v4, bs53, h, t, "dec-map-v53-p-len")
- testDeepEqualErr(v53v3, v53v4, t, "equal-map-v53-p-len")
- }
- for _, v := range []map[float64]interface{}{nil, {}, {22.2: nil, 11.1: "string-is-an-interface"}} {
- // fmt.Printf(">>>> running mammoth map v56: %v\n", v)
- var v56v1, v56v2 map[float64]interface{}
- v56v1 = v
- bs56 := testMarshalErr(v56v1, h, t, "enc-map-v56")
- if v == nil {
- v56v2 = nil
- } else {
- v56v2 = make(map[float64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v56v2, bs56, h, t, "dec-map-v56")
- testDeepEqualErr(v56v1, v56v2, t, "equal-map-v56")
- if v == nil {
- v56v2 = nil
- } else {
- v56v2 = make(map[float64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v56v2), bs56, h, t, "dec-map-v56-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v56v1, v56v2, t, "equal-map-v56-noaddr")
- if v == nil {
- v56v2 = nil
- } else {
- v56v2 = make(map[float64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v56v2, bs56, h, t, "dec-map-v56-p-len")
- testDeepEqualErr(v56v1, v56v2, t, "equal-map-v56-p-len")
- bs56 = testMarshalErr(&v56v1, h, t, "enc-map-v56-p")
- v56v2 = nil
- testUnmarshalErr(&v56v2, bs56, h, t, "dec-map-v56-p-nil")
- testDeepEqualErr(v56v1, v56v2, t, "equal-map-v56-p-nil")
- // ...
- if v == nil {
- v56v2 = nil
- } else {
- v56v2 = make(map[float64]interface{}, len(v))
- } // reset map
- var v56v3, v56v4 typMapMapFloat64Intf
- v56v3 = typMapMapFloat64Intf(v56v1)
- v56v4 = typMapMapFloat64Intf(v56v2)
- bs56 = testMarshalErr(v56v3, h, t, "enc-map-v56-custom")
- testUnmarshalErr(v56v4, bs56, h, t, "dec-map-v56-p-len")
- testDeepEqualErr(v56v3, v56v4, t, "equal-map-v56-p-len")
- }
- for _, v := range []map[float64]string{nil, {}, {22.2: "", 11.1: "some-string"}} {
- // fmt.Printf(">>>> running mammoth map v57: %v\n", v)
- var v57v1, v57v2 map[float64]string
- v57v1 = v
- bs57 := testMarshalErr(v57v1, h, t, "enc-map-v57")
- if v == nil {
- v57v2 = nil
- } else {
- v57v2 = make(map[float64]string, len(v))
- } // reset map
- testUnmarshalErr(v57v2, bs57, h, t, "dec-map-v57")
- testDeepEqualErr(v57v1, v57v2, t, "equal-map-v57")
- if v == nil {
- v57v2 = nil
- } else {
- v57v2 = make(map[float64]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v57v2), bs57, h, t, "dec-map-v57-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v57v1, v57v2, t, "equal-map-v57-noaddr")
- if v == nil {
- v57v2 = nil
- } else {
- v57v2 = make(map[float64]string, len(v))
- } // reset map
- testUnmarshalErr(&v57v2, bs57, h, t, "dec-map-v57-p-len")
- testDeepEqualErr(v57v1, v57v2, t, "equal-map-v57-p-len")
- bs57 = testMarshalErr(&v57v1, h, t, "enc-map-v57-p")
- v57v2 = nil
- testUnmarshalErr(&v57v2, bs57, h, t, "dec-map-v57-p-nil")
- testDeepEqualErr(v57v1, v57v2, t, "equal-map-v57-p-nil")
- // ...
- if v == nil {
- v57v2 = nil
- } else {
- v57v2 = make(map[float64]string, len(v))
- } // reset map
- var v57v3, v57v4 typMapMapFloat64String
- v57v3 = typMapMapFloat64String(v57v1)
- v57v4 = typMapMapFloat64String(v57v2)
- bs57 = testMarshalErr(v57v3, h, t, "enc-map-v57-custom")
- testUnmarshalErr(v57v4, bs57, h, t, "dec-map-v57-p-len")
- testDeepEqualErr(v57v3, v57v4, t, "equal-map-v57-p-len")
- }
- for _, v := range []map[float64]uint{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v58: %v\n", v)
- var v58v1, v58v2 map[float64]uint
- v58v1 = v
- bs58 := testMarshalErr(v58v1, h, t, "enc-map-v58")
- if v == nil {
- v58v2 = nil
- } else {
- v58v2 = make(map[float64]uint, len(v))
- } // reset map
- testUnmarshalErr(v58v2, bs58, h, t, "dec-map-v58")
- testDeepEqualErr(v58v1, v58v2, t, "equal-map-v58")
- if v == nil {
- v58v2 = nil
- } else {
- v58v2 = make(map[float64]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v58v2), bs58, h, t, "dec-map-v58-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v58v1, v58v2, t, "equal-map-v58-noaddr")
- if v == nil {
- v58v2 = nil
- } else {
- v58v2 = make(map[float64]uint, len(v))
- } // reset map
- testUnmarshalErr(&v58v2, bs58, h, t, "dec-map-v58-p-len")
- testDeepEqualErr(v58v1, v58v2, t, "equal-map-v58-p-len")
- bs58 = testMarshalErr(&v58v1, h, t, "enc-map-v58-p")
- v58v2 = nil
- testUnmarshalErr(&v58v2, bs58, h, t, "dec-map-v58-p-nil")
- testDeepEqualErr(v58v1, v58v2, t, "equal-map-v58-p-nil")
- // ...
- if v == nil {
- v58v2 = nil
- } else {
- v58v2 = make(map[float64]uint, len(v))
- } // reset map
- var v58v3, v58v4 typMapMapFloat64Uint
- v58v3 = typMapMapFloat64Uint(v58v1)
- v58v4 = typMapMapFloat64Uint(v58v2)
- bs58 = testMarshalErr(v58v3, h, t, "enc-map-v58-custom")
- testUnmarshalErr(v58v4, bs58, h, t, "dec-map-v58-p-len")
- testDeepEqualErr(v58v3, v58v4, t, "equal-map-v58-p-len")
- }
- for _, v := range []map[float64]uint8{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v59: %v\n", v)
- var v59v1, v59v2 map[float64]uint8
- v59v1 = v
- bs59 := testMarshalErr(v59v1, h, t, "enc-map-v59")
- if v == nil {
- v59v2 = nil
- } else {
- v59v2 = make(map[float64]uint8, len(v))
- } // reset map
- testUnmarshalErr(v59v2, bs59, h, t, "dec-map-v59")
- testDeepEqualErr(v59v1, v59v2, t, "equal-map-v59")
- if v == nil {
- v59v2 = nil
- } else {
- v59v2 = make(map[float64]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v59v2), bs59, h, t, "dec-map-v59-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v59v1, v59v2, t, "equal-map-v59-noaddr")
- if v == nil {
- v59v2 = nil
- } else {
- v59v2 = make(map[float64]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v59v2, bs59, h, t, "dec-map-v59-p-len")
- testDeepEqualErr(v59v1, v59v2, t, "equal-map-v59-p-len")
- bs59 = testMarshalErr(&v59v1, h, t, "enc-map-v59-p")
- v59v2 = nil
- testUnmarshalErr(&v59v2, bs59, h, t, "dec-map-v59-p-nil")
- testDeepEqualErr(v59v1, v59v2, t, "equal-map-v59-p-nil")
- // ...
- if v == nil {
- v59v2 = nil
- } else {
- v59v2 = make(map[float64]uint8, len(v))
- } // reset map
- var v59v3, v59v4 typMapMapFloat64Uint8
- v59v3 = typMapMapFloat64Uint8(v59v1)
- v59v4 = typMapMapFloat64Uint8(v59v2)
- bs59 = testMarshalErr(v59v3, h, t, "enc-map-v59-custom")
- testUnmarshalErr(v59v4, bs59, h, t, "dec-map-v59-p-len")
- testDeepEqualErr(v59v3, v59v4, t, "equal-map-v59-p-len")
- }
- for _, v := range []map[float64]uint16{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v60: %v\n", v)
- var v60v1, v60v2 map[float64]uint16
- v60v1 = v
- bs60 := testMarshalErr(v60v1, h, t, "enc-map-v60")
- if v == nil {
- v60v2 = nil
- } else {
- v60v2 = make(map[float64]uint16, len(v))
- } // reset map
- testUnmarshalErr(v60v2, bs60, h, t, "dec-map-v60")
- testDeepEqualErr(v60v1, v60v2, t, "equal-map-v60")
- if v == nil {
- v60v2 = nil
- } else {
- v60v2 = make(map[float64]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v60v2), bs60, h, t, "dec-map-v60-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v60v1, v60v2, t, "equal-map-v60-noaddr")
- if v == nil {
- v60v2 = nil
- } else {
- v60v2 = make(map[float64]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v60v2, bs60, h, t, "dec-map-v60-p-len")
- testDeepEqualErr(v60v1, v60v2, t, "equal-map-v60-p-len")
- bs60 = testMarshalErr(&v60v1, h, t, "enc-map-v60-p")
- v60v2 = nil
- testUnmarshalErr(&v60v2, bs60, h, t, "dec-map-v60-p-nil")
- testDeepEqualErr(v60v1, v60v2, t, "equal-map-v60-p-nil")
- // ...
- if v == nil {
- v60v2 = nil
- } else {
- v60v2 = make(map[float64]uint16, len(v))
- } // reset map
- var v60v3, v60v4 typMapMapFloat64Uint16
- v60v3 = typMapMapFloat64Uint16(v60v1)
- v60v4 = typMapMapFloat64Uint16(v60v2)
- bs60 = testMarshalErr(v60v3, h, t, "enc-map-v60-custom")
- testUnmarshalErr(v60v4, bs60, h, t, "dec-map-v60-p-len")
- testDeepEqualErr(v60v3, v60v4, t, "equal-map-v60-p-len")
- }
- for _, v := range []map[float64]uint32{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v61: %v\n", v)
- var v61v1, v61v2 map[float64]uint32
- v61v1 = v
- bs61 := testMarshalErr(v61v1, h, t, "enc-map-v61")
- if v == nil {
- v61v2 = nil
- } else {
- v61v2 = make(map[float64]uint32, len(v))
- } // reset map
- testUnmarshalErr(v61v2, bs61, h, t, "dec-map-v61")
- testDeepEqualErr(v61v1, v61v2, t, "equal-map-v61")
- if v == nil {
- v61v2 = nil
- } else {
- v61v2 = make(map[float64]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v61v2), bs61, h, t, "dec-map-v61-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v61v1, v61v2, t, "equal-map-v61-noaddr")
- if v == nil {
- v61v2 = nil
- } else {
- v61v2 = make(map[float64]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v61v2, bs61, h, t, "dec-map-v61-p-len")
- testDeepEqualErr(v61v1, v61v2, t, "equal-map-v61-p-len")
- bs61 = testMarshalErr(&v61v1, h, t, "enc-map-v61-p")
- v61v2 = nil
- testUnmarshalErr(&v61v2, bs61, h, t, "dec-map-v61-p-nil")
- testDeepEqualErr(v61v1, v61v2, t, "equal-map-v61-p-nil")
- // ...
- if v == nil {
- v61v2 = nil
- } else {
- v61v2 = make(map[float64]uint32, len(v))
- } // reset map
- var v61v3, v61v4 typMapMapFloat64Uint32
- v61v3 = typMapMapFloat64Uint32(v61v1)
- v61v4 = typMapMapFloat64Uint32(v61v2)
- bs61 = testMarshalErr(v61v3, h, t, "enc-map-v61-custom")
- testUnmarshalErr(v61v4, bs61, h, t, "dec-map-v61-p-len")
- testDeepEqualErr(v61v3, v61v4, t, "equal-map-v61-p-len")
- }
- for _, v := range []map[float64]uint64{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v62: %v\n", v)
- var v62v1, v62v2 map[float64]uint64
- v62v1 = v
- bs62 := testMarshalErr(v62v1, h, t, "enc-map-v62")
- if v == nil {
- v62v2 = nil
- } else {
- v62v2 = make(map[float64]uint64, len(v))
- } // reset map
- testUnmarshalErr(v62v2, bs62, h, t, "dec-map-v62")
- testDeepEqualErr(v62v1, v62v2, t, "equal-map-v62")
- if v == nil {
- v62v2 = nil
- } else {
- v62v2 = make(map[float64]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v62v2), bs62, h, t, "dec-map-v62-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v62v1, v62v2, t, "equal-map-v62-noaddr")
- if v == nil {
- v62v2 = nil
- } else {
- v62v2 = make(map[float64]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v62v2, bs62, h, t, "dec-map-v62-p-len")
- testDeepEqualErr(v62v1, v62v2, t, "equal-map-v62-p-len")
- bs62 = testMarshalErr(&v62v1, h, t, "enc-map-v62-p")
- v62v2 = nil
- testUnmarshalErr(&v62v2, bs62, h, t, "dec-map-v62-p-nil")
- testDeepEqualErr(v62v1, v62v2, t, "equal-map-v62-p-nil")
- // ...
- if v == nil {
- v62v2 = nil
- } else {
- v62v2 = make(map[float64]uint64, len(v))
- } // reset map
- var v62v3, v62v4 typMapMapFloat64Uint64
- v62v3 = typMapMapFloat64Uint64(v62v1)
- v62v4 = typMapMapFloat64Uint64(v62v2)
- bs62 = testMarshalErr(v62v3, h, t, "enc-map-v62-custom")
- testUnmarshalErr(v62v4, bs62, h, t, "dec-map-v62-p-len")
- testDeepEqualErr(v62v3, v62v4, t, "equal-map-v62-p-len")
- }
- for _, v := range []map[float64]uintptr{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v63: %v\n", v)
- var v63v1, v63v2 map[float64]uintptr
- v63v1 = v
- bs63 := testMarshalErr(v63v1, h, t, "enc-map-v63")
- if v == nil {
- v63v2 = nil
- } else {
- v63v2 = make(map[float64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v63v2, bs63, h, t, "dec-map-v63")
- testDeepEqualErr(v63v1, v63v2, t, "equal-map-v63")
- if v == nil {
- v63v2 = nil
- } else {
- v63v2 = make(map[float64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v63v2), bs63, h, t, "dec-map-v63-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v63v1, v63v2, t, "equal-map-v63-noaddr")
- if v == nil {
- v63v2 = nil
- } else {
- v63v2 = make(map[float64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v63v2, bs63, h, t, "dec-map-v63-p-len")
- testDeepEqualErr(v63v1, v63v2, t, "equal-map-v63-p-len")
- bs63 = testMarshalErr(&v63v1, h, t, "enc-map-v63-p")
- v63v2 = nil
- testUnmarshalErr(&v63v2, bs63, h, t, "dec-map-v63-p-nil")
- testDeepEqualErr(v63v1, v63v2, t, "equal-map-v63-p-nil")
- // ...
- if v == nil {
- v63v2 = nil
- } else {
- v63v2 = make(map[float64]uintptr, len(v))
- } // reset map
- var v63v3, v63v4 typMapMapFloat64Uintptr
- v63v3 = typMapMapFloat64Uintptr(v63v1)
- v63v4 = typMapMapFloat64Uintptr(v63v2)
- bs63 = testMarshalErr(v63v3, h, t, "enc-map-v63-custom")
- testUnmarshalErr(v63v4, bs63, h, t, "dec-map-v63-p-len")
- testDeepEqualErr(v63v3, v63v4, t, "equal-map-v63-p-len")
- }
- for _, v := range []map[float64]int{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v64: %v\n", v)
- var v64v1, v64v2 map[float64]int
- v64v1 = v
- bs64 := testMarshalErr(v64v1, h, t, "enc-map-v64")
- if v == nil {
- v64v2 = nil
- } else {
- v64v2 = make(map[float64]int, len(v))
- } // reset map
- testUnmarshalErr(v64v2, bs64, h, t, "dec-map-v64")
- testDeepEqualErr(v64v1, v64v2, t, "equal-map-v64")
- if v == nil {
- v64v2 = nil
- } else {
- v64v2 = make(map[float64]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v64v2), bs64, h, t, "dec-map-v64-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v64v1, v64v2, t, "equal-map-v64-noaddr")
- if v == nil {
- v64v2 = nil
- } else {
- v64v2 = make(map[float64]int, len(v))
- } // reset map
- testUnmarshalErr(&v64v2, bs64, h, t, "dec-map-v64-p-len")
- testDeepEqualErr(v64v1, v64v2, t, "equal-map-v64-p-len")
- bs64 = testMarshalErr(&v64v1, h, t, "enc-map-v64-p")
- v64v2 = nil
- testUnmarshalErr(&v64v2, bs64, h, t, "dec-map-v64-p-nil")
- testDeepEqualErr(v64v1, v64v2, t, "equal-map-v64-p-nil")
- // ...
- if v == nil {
- v64v2 = nil
- } else {
- v64v2 = make(map[float64]int, len(v))
- } // reset map
- var v64v3, v64v4 typMapMapFloat64Int
- v64v3 = typMapMapFloat64Int(v64v1)
- v64v4 = typMapMapFloat64Int(v64v2)
- bs64 = testMarshalErr(v64v3, h, t, "enc-map-v64-custom")
- testUnmarshalErr(v64v4, bs64, h, t, "dec-map-v64-p-len")
- testDeepEqualErr(v64v3, v64v4, t, "equal-map-v64-p-len")
- }
- for _, v := range []map[float64]int8{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v65: %v\n", v)
- var v65v1, v65v2 map[float64]int8
- v65v1 = v
- bs65 := testMarshalErr(v65v1, h, t, "enc-map-v65")
- if v == nil {
- v65v2 = nil
- } else {
- v65v2 = make(map[float64]int8, len(v))
- } // reset map
- testUnmarshalErr(v65v2, bs65, h, t, "dec-map-v65")
- testDeepEqualErr(v65v1, v65v2, t, "equal-map-v65")
- if v == nil {
- v65v2 = nil
- } else {
- v65v2 = make(map[float64]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v65v2), bs65, h, t, "dec-map-v65-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v65v1, v65v2, t, "equal-map-v65-noaddr")
- if v == nil {
- v65v2 = nil
- } else {
- v65v2 = make(map[float64]int8, len(v))
- } // reset map
- testUnmarshalErr(&v65v2, bs65, h, t, "dec-map-v65-p-len")
- testDeepEqualErr(v65v1, v65v2, t, "equal-map-v65-p-len")
- bs65 = testMarshalErr(&v65v1, h, t, "enc-map-v65-p")
- v65v2 = nil
- testUnmarshalErr(&v65v2, bs65, h, t, "dec-map-v65-p-nil")
- testDeepEqualErr(v65v1, v65v2, t, "equal-map-v65-p-nil")
- // ...
- if v == nil {
- v65v2 = nil
- } else {
- v65v2 = make(map[float64]int8, len(v))
- } // reset map
- var v65v3, v65v4 typMapMapFloat64Int8
- v65v3 = typMapMapFloat64Int8(v65v1)
- v65v4 = typMapMapFloat64Int8(v65v2)
- bs65 = testMarshalErr(v65v3, h, t, "enc-map-v65-custom")
- testUnmarshalErr(v65v4, bs65, h, t, "dec-map-v65-p-len")
- testDeepEqualErr(v65v3, v65v4, t, "equal-map-v65-p-len")
- }
- for _, v := range []map[float64]int16{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v66: %v\n", v)
- var v66v1, v66v2 map[float64]int16
- v66v1 = v
- bs66 := testMarshalErr(v66v1, h, t, "enc-map-v66")
- if v == nil {
- v66v2 = nil
- } else {
- v66v2 = make(map[float64]int16, len(v))
- } // reset map
- testUnmarshalErr(v66v2, bs66, h, t, "dec-map-v66")
- testDeepEqualErr(v66v1, v66v2, t, "equal-map-v66")
- if v == nil {
- v66v2 = nil
- } else {
- v66v2 = make(map[float64]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v66v2), bs66, h, t, "dec-map-v66-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v66v1, v66v2, t, "equal-map-v66-noaddr")
- if v == nil {
- v66v2 = nil
- } else {
- v66v2 = make(map[float64]int16, len(v))
- } // reset map
- testUnmarshalErr(&v66v2, bs66, h, t, "dec-map-v66-p-len")
- testDeepEqualErr(v66v1, v66v2, t, "equal-map-v66-p-len")
- bs66 = testMarshalErr(&v66v1, h, t, "enc-map-v66-p")
- v66v2 = nil
- testUnmarshalErr(&v66v2, bs66, h, t, "dec-map-v66-p-nil")
- testDeepEqualErr(v66v1, v66v2, t, "equal-map-v66-p-nil")
- // ...
- if v == nil {
- v66v2 = nil
- } else {
- v66v2 = make(map[float64]int16, len(v))
- } // reset map
- var v66v3, v66v4 typMapMapFloat64Int16
- v66v3 = typMapMapFloat64Int16(v66v1)
- v66v4 = typMapMapFloat64Int16(v66v2)
- bs66 = testMarshalErr(v66v3, h, t, "enc-map-v66-custom")
- testUnmarshalErr(v66v4, bs66, h, t, "dec-map-v66-p-len")
- testDeepEqualErr(v66v3, v66v4, t, "equal-map-v66-p-len")
- }
- for _, v := range []map[float64]int32{nil, {}, {22.2: 0, 11.1: 44}} {
- // fmt.Printf(">>>> running mammoth map v67: %v\n", v)
- var v67v1, v67v2 map[float64]int32
- v67v1 = v
- bs67 := testMarshalErr(v67v1, h, t, "enc-map-v67")
- if v == nil {
- v67v2 = nil
- } else {
- v67v2 = make(map[float64]int32, len(v))
- } // reset map
- testUnmarshalErr(v67v2, bs67, h, t, "dec-map-v67")
- testDeepEqualErr(v67v1, v67v2, t, "equal-map-v67")
- if v == nil {
- v67v2 = nil
- } else {
- v67v2 = make(map[float64]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v67v2), bs67, h, t, "dec-map-v67-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v67v1, v67v2, t, "equal-map-v67-noaddr")
- if v == nil {
- v67v2 = nil
- } else {
- v67v2 = make(map[float64]int32, len(v))
- } // reset map
- testUnmarshalErr(&v67v2, bs67, h, t, "dec-map-v67-p-len")
- testDeepEqualErr(v67v1, v67v2, t, "equal-map-v67-p-len")
- bs67 = testMarshalErr(&v67v1, h, t, "enc-map-v67-p")
- v67v2 = nil
- testUnmarshalErr(&v67v2, bs67, h, t, "dec-map-v67-p-nil")
- testDeepEqualErr(v67v1, v67v2, t, "equal-map-v67-p-nil")
- // ...
- if v == nil {
- v67v2 = nil
- } else {
- v67v2 = make(map[float64]int32, len(v))
- } // reset map
- var v67v3, v67v4 typMapMapFloat64Int32
- v67v3 = typMapMapFloat64Int32(v67v1)
- v67v4 = typMapMapFloat64Int32(v67v2)
- bs67 = testMarshalErr(v67v3, h, t, "enc-map-v67-custom")
- testUnmarshalErr(v67v4, bs67, h, t, "dec-map-v67-p-len")
- testDeepEqualErr(v67v3, v67v4, t, "equal-map-v67-p-len")
- }
- for _, v := range []map[float64]int64{nil, {}, {22.2: 0, 11.1: 33}} {
- // fmt.Printf(">>>> running mammoth map v68: %v\n", v)
- var v68v1, v68v2 map[float64]int64
- v68v1 = v
- bs68 := testMarshalErr(v68v1, h, t, "enc-map-v68")
- if v == nil {
- v68v2 = nil
- } else {
- v68v2 = make(map[float64]int64, len(v))
- } // reset map
- testUnmarshalErr(v68v2, bs68, h, t, "dec-map-v68")
- testDeepEqualErr(v68v1, v68v2, t, "equal-map-v68")
- if v == nil {
- v68v2 = nil
- } else {
- v68v2 = make(map[float64]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v68v2), bs68, h, t, "dec-map-v68-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v68v1, v68v2, t, "equal-map-v68-noaddr")
- if v == nil {
- v68v2 = nil
- } else {
- v68v2 = make(map[float64]int64, len(v))
- } // reset map
- testUnmarshalErr(&v68v2, bs68, h, t, "dec-map-v68-p-len")
- testDeepEqualErr(v68v1, v68v2, t, "equal-map-v68-p-len")
- bs68 = testMarshalErr(&v68v1, h, t, "enc-map-v68-p")
- v68v2 = nil
- testUnmarshalErr(&v68v2, bs68, h, t, "dec-map-v68-p-nil")
- testDeepEqualErr(v68v1, v68v2, t, "equal-map-v68-p-nil")
- // ...
- if v == nil {
- v68v2 = nil
- } else {
- v68v2 = make(map[float64]int64, len(v))
- } // reset map
- var v68v3, v68v4 typMapMapFloat64Int64
- v68v3 = typMapMapFloat64Int64(v68v1)
- v68v4 = typMapMapFloat64Int64(v68v2)
- bs68 = testMarshalErr(v68v3, h, t, "enc-map-v68-custom")
- testUnmarshalErr(v68v4, bs68, h, t, "dec-map-v68-p-len")
- testDeepEqualErr(v68v3, v68v4, t, "equal-map-v68-p-len")
- }
- for _, v := range []map[float64]float32{nil, {}, {22.2: 0, 11.1: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v69: %v\n", v)
- var v69v1, v69v2 map[float64]float32
- v69v1 = v
- bs69 := testMarshalErr(v69v1, h, t, "enc-map-v69")
- if v == nil {
- v69v2 = nil
- } else {
- v69v2 = make(map[float64]float32, len(v))
- } // reset map
- testUnmarshalErr(v69v2, bs69, h, t, "dec-map-v69")
- testDeepEqualErr(v69v1, v69v2, t, "equal-map-v69")
- if v == nil {
- v69v2 = nil
- } else {
- v69v2 = make(map[float64]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v69v2), bs69, h, t, "dec-map-v69-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v69v1, v69v2, t, "equal-map-v69-noaddr")
- if v == nil {
- v69v2 = nil
- } else {
- v69v2 = make(map[float64]float32, len(v))
- } // reset map
- testUnmarshalErr(&v69v2, bs69, h, t, "dec-map-v69-p-len")
- testDeepEqualErr(v69v1, v69v2, t, "equal-map-v69-p-len")
- bs69 = testMarshalErr(&v69v1, h, t, "enc-map-v69-p")
- v69v2 = nil
- testUnmarshalErr(&v69v2, bs69, h, t, "dec-map-v69-p-nil")
- testDeepEqualErr(v69v1, v69v2, t, "equal-map-v69-p-nil")
- // ...
- if v == nil {
- v69v2 = nil
- } else {
- v69v2 = make(map[float64]float32, len(v))
- } // reset map
- var v69v3, v69v4 typMapMapFloat64Float32
- v69v3 = typMapMapFloat64Float32(v69v1)
- v69v4 = typMapMapFloat64Float32(v69v2)
- bs69 = testMarshalErr(v69v3, h, t, "enc-map-v69-custom")
- testUnmarshalErr(v69v4, bs69, h, t, "dec-map-v69-p-len")
- testDeepEqualErr(v69v3, v69v4, t, "equal-map-v69-p-len")
- }
- for _, v := range []map[float64]float64{nil, {}, {11.1: 0, 22.2: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v70: %v\n", v)
- var v70v1, v70v2 map[float64]float64
- v70v1 = v
- bs70 := testMarshalErr(v70v1, h, t, "enc-map-v70")
- if v == nil {
- v70v2 = nil
- } else {
- v70v2 = make(map[float64]float64, len(v))
- } // reset map
- testUnmarshalErr(v70v2, bs70, h, t, "dec-map-v70")
- testDeepEqualErr(v70v1, v70v2, t, "equal-map-v70")
- if v == nil {
- v70v2 = nil
- } else {
- v70v2 = make(map[float64]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v70v2), bs70, h, t, "dec-map-v70-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v70v1, v70v2, t, "equal-map-v70-noaddr")
- if v == nil {
- v70v2 = nil
- } else {
- v70v2 = make(map[float64]float64, len(v))
- } // reset map
- testUnmarshalErr(&v70v2, bs70, h, t, "dec-map-v70-p-len")
- testDeepEqualErr(v70v1, v70v2, t, "equal-map-v70-p-len")
- bs70 = testMarshalErr(&v70v1, h, t, "enc-map-v70-p")
- v70v2 = nil
- testUnmarshalErr(&v70v2, bs70, h, t, "dec-map-v70-p-nil")
- testDeepEqualErr(v70v1, v70v2, t, "equal-map-v70-p-nil")
- // ...
- if v == nil {
- v70v2 = nil
- } else {
- v70v2 = make(map[float64]float64, len(v))
- } // reset map
- var v70v3, v70v4 typMapMapFloat64Float64
- v70v3 = typMapMapFloat64Float64(v70v1)
- v70v4 = typMapMapFloat64Float64(v70v2)
- bs70 = testMarshalErr(v70v3, h, t, "enc-map-v70-custom")
- testUnmarshalErr(v70v4, bs70, h, t, "dec-map-v70-p-len")
- testDeepEqualErr(v70v3, v70v4, t, "equal-map-v70-p-len")
- }
- for _, v := range []map[float64]bool{nil, {}, {22.2: false, 11.1: true}} {
- // fmt.Printf(">>>> running mammoth map v71: %v\n", v)
- var v71v1, v71v2 map[float64]bool
- v71v1 = v
- bs71 := testMarshalErr(v71v1, h, t, "enc-map-v71")
- if v == nil {
- v71v2 = nil
- } else {
- v71v2 = make(map[float64]bool, len(v))
- } // reset map
- testUnmarshalErr(v71v2, bs71, h, t, "dec-map-v71")
- testDeepEqualErr(v71v1, v71v2, t, "equal-map-v71")
- if v == nil {
- v71v2 = nil
- } else {
- v71v2 = make(map[float64]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v71v2), bs71, h, t, "dec-map-v71-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v71v1, v71v2, t, "equal-map-v71-noaddr")
- if v == nil {
- v71v2 = nil
- } else {
- v71v2 = make(map[float64]bool, len(v))
- } // reset map
- testUnmarshalErr(&v71v2, bs71, h, t, "dec-map-v71-p-len")
- testDeepEqualErr(v71v1, v71v2, t, "equal-map-v71-p-len")
- bs71 = testMarshalErr(&v71v1, h, t, "enc-map-v71-p")
- v71v2 = nil
- testUnmarshalErr(&v71v2, bs71, h, t, "dec-map-v71-p-nil")
- testDeepEqualErr(v71v1, v71v2, t, "equal-map-v71-p-nil")
- // ...
- if v == nil {
- v71v2 = nil
- } else {
- v71v2 = make(map[float64]bool, len(v))
- } // reset map
- var v71v3, v71v4 typMapMapFloat64Bool
- v71v3 = typMapMapFloat64Bool(v71v1)
- v71v4 = typMapMapFloat64Bool(v71v2)
- bs71 = testMarshalErr(v71v3, h, t, "enc-map-v71-custom")
- testUnmarshalErr(v71v4, bs71, h, t, "dec-map-v71-p-len")
- testDeepEqualErr(v71v3, v71v4, t, "equal-map-v71-p-len")
- }
- for _, v := range []map[uint]interface{}{nil, {}, {44: nil, 33: "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v74: %v\n", v)
- var v74v1, v74v2 map[uint]interface{}
- v74v1 = v
- bs74 := testMarshalErr(v74v1, h, t, "enc-map-v74")
- if v == nil {
- v74v2 = nil
- } else {
- v74v2 = make(map[uint]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v74v2, bs74, h, t, "dec-map-v74")
- testDeepEqualErr(v74v1, v74v2, t, "equal-map-v74")
- if v == nil {
- v74v2 = nil
- } else {
- v74v2 = make(map[uint]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v74v2), bs74, h, t, "dec-map-v74-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v74v1, v74v2, t, "equal-map-v74-noaddr")
- if v == nil {
- v74v2 = nil
- } else {
- v74v2 = make(map[uint]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v74v2, bs74, h, t, "dec-map-v74-p-len")
- testDeepEqualErr(v74v1, v74v2, t, "equal-map-v74-p-len")
- bs74 = testMarshalErr(&v74v1, h, t, "enc-map-v74-p")
- v74v2 = nil
- testUnmarshalErr(&v74v2, bs74, h, t, "dec-map-v74-p-nil")
- testDeepEqualErr(v74v1, v74v2, t, "equal-map-v74-p-nil")
- // ...
- if v == nil {
- v74v2 = nil
- } else {
- v74v2 = make(map[uint]interface{}, len(v))
- } // reset map
- var v74v3, v74v4 typMapMapUintIntf
- v74v3 = typMapMapUintIntf(v74v1)
- v74v4 = typMapMapUintIntf(v74v2)
- bs74 = testMarshalErr(v74v3, h, t, "enc-map-v74-custom")
- testUnmarshalErr(v74v4, bs74, h, t, "dec-map-v74-p-len")
- testDeepEqualErr(v74v3, v74v4, t, "equal-map-v74-p-len")
- }
- for _, v := range []map[uint]string{nil, {}, {44: "", 33: "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v75: %v\n", v)
- var v75v1, v75v2 map[uint]string
- v75v1 = v
- bs75 := testMarshalErr(v75v1, h, t, "enc-map-v75")
- if v == nil {
- v75v2 = nil
- } else {
- v75v2 = make(map[uint]string, len(v))
- } // reset map
- testUnmarshalErr(v75v2, bs75, h, t, "dec-map-v75")
- testDeepEqualErr(v75v1, v75v2, t, "equal-map-v75")
- if v == nil {
- v75v2 = nil
- } else {
- v75v2 = make(map[uint]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v75v2), bs75, h, t, "dec-map-v75-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v75v1, v75v2, t, "equal-map-v75-noaddr")
- if v == nil {
- v75v2 = nil
- } else {
- v75v2 = make(map[uint]string, len(v))
- } // reset map
- testUnmarshalErr(&v75v2, bs75, h, t, "dec-map-v75-p-len")
- testDeepEqualErr(v75v1, v75v2, t, "equal-map-v75-p-len")
- bs75 = testMarshalErr(&v75v1, h, t, "enc-map-v75-p")
- v75v2 = nil
- testUnmarshalErr(&v75v2, bs75, h, t, "dec-map-v75-p-nil")
- testDeepEqualErr(v75v1, v75v2, t, "equal-map-v75-p-nil")
- // ...
- if v == nil {
- v75v2 = nil
- } else {
- v75v2 = make(map[uint]string, len(v))
- } // reset map
- var v75v3, v75v4 typMapMapUintString
- v75v3 = typMapMapUintString(v75v1)
- v75v4 = typMapMapUintString(v75v2)
- bs75 = testMarshalErr(v75v3, h, t, "enc-map-v75-custom")
- testUnmarshalErr(v75v4, bs75, h, t, "dec-map-v75-p-len")
- testDeepEqualErr(v75v3, v75v4, t, "equal-map-v75-p-len")
- }
- for _, v := range []map[uint]uint{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v76: %v\n", v)
- var v76v1, v76v2 map[uint]uint
- v76v1 = v
- bs76 := testMarshalErr(v76v1, h, t, "enc-map-v76")
- if v == nil {
- v76v2 = nil
- } else {
- v76v2 = make(map[uint]uint, len(v))
- } // reset map
- testUnmarshalErr(v76v2, bs76, h, t, "dec-map-v76")
- testDeepEqualErr(v76v1, v76v2, t, "equal-map-v76")
- if v == nil {
- v76v2 = nil
- } else {
- v76v2 = make(map[uint]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v76v2), bs76, h, t, "dec-map-v76-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v76v1, v76v2, t, "equal-map-v76-noaddr")
- if v == nil {
- v76v2 = nil
- } else {
- v76v2 = make(map[uint]uint, len(v))
- } // reset map
- testUnmarshalErr(&v76v2, bs76, h, t, "dec-map-v76-p-len")
- testDeepEqualErr(v76v1, v76v2, t, "equal-map-v76-p-len")
- bs76 = testMarshalErr(&v76v1, h, t, "enc-map-v76-p")
- v76v2 = nil
- testUnmarshalErr(&v76v2, bs76, h, t, "dec-map-v76-p-nil")
- testDeepEqualErr(v76v1, v76v2, t, "equal-map-v76-p-nil")
- // ...
- if v == nil {
- v76v2 = nil
- } else {
- v76v2 = make(map[uint]uint, len(v))
- } // reset map
- var v76v3, v76v4 typMapMapUintUint
- v76v3 = typMapMapUintUint(v76v1)
- v76v4 = typMapMapUintUint(v76v2)
- bs76 = testMarshalErr(v76v3, h, t, "enc-map-v76-custom")
- testUnmarshalErr(v76v4, bs76, h, t, "dec-map-v76-p-len")
- testDeepEqualErr(v76v3, v76v4, t, "equal-map-v76-p-len")
- }
- for _, v := range []map[uint]uint8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v77: %v\n", v)
- var v77v1, v77v2 map[uint]uint8
- v77v1 = v
- bs77 := testMarshalErr(v77v1, h, t, "enc-map-v77")
- if v == nil {
- v77v2 = nil
- } else {
- v77v2 = make(map[uint]uint8, len(v))
- } // reset map
- testUnmarshalErr(v77v2, bs77, h, t, "dec-map-v77")
- testDeepEqualErr(v77v1, v77v2, t, "equal-map-v77")
- if v == nil {
- v77v2 = nil
- } else {
- v77v2 = make(map[uint]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v77v2), bs77, h, t, "dec-map-v77-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v77v1, v77v2, t, "equal-map-v77-noaddr")
- if v == nil {
- v77v2 = nil
- } else {
- v77v2 = make(map[uint]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v77v2, bs77, h, t, "dec-map-v77-p-len")
- testDeepEqualErr(v77v1, v77v2, t, "equal-map-v77-p-len")
- bs77 = testMarshalErr(&v77v1, h, t, "enc-map-v77-p")
- v77v2 = nil
- testUnmarshalErr(&v77v2, bs77, h, t, "dec-map-v77-p-nil")
- testDeepEqualErr(v77v1, v77v2, t, "equal-map-v77-p-nil")
- // ...
- if v == nil {
- v77v2 = nil
- } else {
- v77v2 = make(map[uint]uint8, len(v))
- } // reset map
- var v77v3, v77v4 typMapMapUintUint8
- v77v3 = typMapMapUintUint8(v77v1)
- v77v4 = typMapMapUintUint8(v77v2)
- bs77 = testMarshalErr(v77v3, h, t, "enc-map-v77-custom")
- testUnmarshalErr(v77v4, bs77, h, t, "dec-map-v77-p-len")
- testDeepEqualErr(v77v3, v77v4, t, "equal-map-v77-p-len")
- }
- for _, v := range []map[uint]uint16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v78: %v\n", v)
- var v78v1, v78v2 map[uint]uint16
- v78v1 = v
- bs78 := testMarshalErr(v78v1, h, t, "enc-map-v78")
- if v == nil {
- v78v2 = nil
- } else {
- v78v2 = make(map[uint]uint16, len(v))
- } // reset map
- testUnmarshalErr(v78v2, bs78, h, t, "dec-map-v78")
- testDeepEqualErr(v78v1, v78v2, t, "equal-map-v78")
- if v == nil {
- v78v2 = nil
- } else {
- v78v2 = make(map[uint]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v78v2), bs78, h, t, "dec-map-v78-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v78v1, v78v2, t, "equal-map-v78-noaddr")
- if v == nil {
- v78v2 = nil
- } else {
- v78v2 = make(map[uint]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v78v2, bs78, h, t, "dec-map-v78-p-len")
- testDeepEqualErr(v78v1, v78v2, t, "equal-map-v78-p-len")
- bs78 = testMarshalErr(&v78v1, h, t, "enc-map-v78-p")
- v78v2 = nil
- testUnmarshalErr(&v78v2, bs78, h, t, "dec-map-v78-p-nil")
- testDeepEqualErr(v78v1, v78v2, t, "equal-map-v78-p-nil")
- // ...
- if v == nil {
- v78v2 = nil
- } else {
- v78v2 = make(map[uint]uint16, len(v))
- } // reset map
- var v78v3, v78v4 typMapMapUintUint16
- v78v3 = typMapMapUintUint16(v78v1)
- v78v4 = typMapMapUintUint16(v78v2)
- bs78 = testMarshalErr(v78v3, h, t, "enc-map-v78-custom")
- testUnmarshalErr(v78v4, bs78, h, t, "dec-map-v78-p-len")
- testDeepEqualErr(v78v3, v78v4, t, "equal-map-v78-p-len")
- }
- for _, v := range []map[uint]uint32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v79: %v\n", v)
- var v79v1, v79v2 map[uint]uint32
- v79v1 = v
- bs79 := testMarshalErr(v79v1, h, t, "enc-map-v79")
- if v == nil {
- v79v2 = nil
- } else {
- v79v2 = make(map[uint]uint32, len(v))
- } // reset map
- testUnmarshalErr(v79v2, bs79, h, t, "dec-map-v79")
- testDeepEqualErr(v79v1, v79v2, t, "equal-map-v79")
- if v == nil {
- v79v2 = nil
- } else {
- v79v2 = make(map[uint]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v79v2), bs79, h, t, "dec-map-v79-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v79v1, v79v2, t, "equal-map-v79-noaddr")
- if v == nil {
- v79v2 = nil
- } else {
- v79v2 = make(map[uint]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v79v2, bs79, h, t, "dec-map-v79-p-len")
- testDeepEqualErr(v79v1, v79v2, t, "equal-map-v79-p-len")
- bs79 = testMarshalErr(&v79v1, h, t, "enc-map-v79-p")
- v79v2 = nil
- testUnmarshalErr(&v79v2, bs79, h, t, "dec-map-v79-p-nil")
- testDeepEqualErr(v79v1, v79v2, t, "equal-map-v79-p-nil")
- // ...
- if v == nil {
- v79v2 = nil
- } else {
- v79v2 = make(map[uint]uint32, len(v))
- } // reset map
- var v79v3, v79v4 typMapMapUintUint32
- v79v3 = typMapMapUintUint32(v79v1)
- v79v4 = typMapMapUintUint32(v79v2)
- bs79 = testMarshalErr(v79v3, h, t, "enc-map-v79-custom")
- testUnmarshalErr(v79v4, bs79, h, t, "dec-map-v79-p-len")
- testDeepEqualErr(v79v3, v79v4, t, "equal-map-v79-p-len")
- }
- for _, v := range []map[uint]uint64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v80: %v\n", v)
- var v80v1, v80v2 map[uint]uint64
- v80v1 = v
- bs80 := testMarshalErr(v80v1, h, t, "enc-map-v80")
- if v == nil {
- v80v2 = nil
- } else {
- v80v2 = make(map[uint]uint64, len(v))
- } // reset map
- testUnmarshalErr(v80v2, bs80, h, t, "dec-map-v80")
- testDeepEqualErr(v80v1, v80v2, t, "equal-map-v80")
- if v == nil {
- v80v2 = nil
- } else {
- v80v2 = make(map[uint]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v80v2), bs80, h, t, "dec-map-v80-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v80v1, v80v2, t, "equal-map-v80-noaddr")
- if v == nil {
- v80v2 = nil
- } else {
- v80v2 = make(map[uint]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v80v2, bs80, h, t, "dec-map-v80-p-len")
- testDeepEqualErr(v80v1, v80v2, t, "equal-map-v80-p-len")
- bs80 = testMarshalErr(&v80v1, h, t, "enc-map-v80-p")
- v80v2 = nil
- testUnmarshalErr(&v80v2, bs80, h, t, "dec-map-v80-p-nil")
- testDeepEqualErr(v80v1, v80v2, t, "equal-map-v80-p-nil")
- // ...
- if v == nil {
- v80v2 = nil
- } else {
- v80v2 = make(map[uint]uint64, len(v))
- } // reset map
- var v80v3, v80v4 typMapMapUintUint64
- v80v3 = typMapMapUintUint64(v80v1)
- v80v4 = typMapMapUintUint64(v80v2)
- bs80 = testMarshalErr(v80v3, h, t, "enc-map-v80-custom")
- testUnmarshalErr(v80v4, bs80, h, t, "dec-map-v80-p-len")
- testDeepEqualErr(v80v3, v80v4, t, "equal-map-v80-p-len")
- }
- for _, v := range []map[uint]uintptr{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v81: %v\n", v)
- var v81v1, v81v2 map[uint]uintptr
- v81v1 = v
- bs81 := testMarshalErr(v81v1, h, t, "enc-map-v81")
- if v == nil {
- v81v2 = nil
- } else {
- v81v2 = make(map[uint]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v81v2, bs81, h, t, "dec-map-v81")
- testDeepEqualErr(v81v1, v81v2, t, "equal-map-v81")
- if v == nil {
- v81v2 = nil
- } else {
- v81v2 = make(map[uint]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v81v2), bs81, h, t, "dec-map-v81-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v81v1, v81v2, t, "equal-map-v81-noaddr")
- if v == nil {
- v81v2 = nil
- } else {
- v81v2 = make(map[uint]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v81v2, bs81, h, t, "dec-map-v81-p-len")
- testDeepEqualErr(v81v1, v81v2, t, "equal-map-v81-p-len")
- bs81 = testMarshalErr(&v81v1, h, t, "enc-map-v81-p")
- v81v2 = nil
- testUnmarshalErr(&v81v2, bs81, h, t, "dec-map-v81-p-nil")
- testDeepEqualErr(v81v1, v81v2, t, "equal-map-v81-p-nil")
- // ...
- if v == nil {
- v81v2 = nil
- } else {
- v81v2 = make(map[uint]uintptr, len(v))
- } // reset map
- var v81v3, v81v4 typMapMapUintUintptr
- v81v3 = typMapMapUintUintptr(v81v1)
- v81v4 = typMapMapUintUintptr(v81v2)
- bs81 = testMarshalErr(v81v3, h, t, "enc-map-v81-custom")
- testUnmarshalErr(v81v4, bs81, h, t, "dec-map-v81-p-len")
- testDeepEqualErr(v81v3, v81v4, t, "equal-map-v81-p-len")
- }
- for _, v := range []map[uint]int{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v82: %v\n", v)
- var v82v1, v82v2 map[uint]int
- v82v1 = v
- bs82 := testMarshalErr(v82v1, h, t, "enc-map-v82")
- if v == nil {
- v82v2 = nil
- } else {
- v82v2 = make(map[uint]int, len(v))
- } // reset map
- testUnmarshalErr(v82v2, bs82, h, t, "dec-map-v82")
- testDeepEqualErr(v82v1, v82v2, t, "equal-map-v82")
- if v == nil {
- v82v2 = nil
- } else {
- v82v2 = make(map[uint]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v82v2), bs82, h, t, "dec-map-v82-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v82v1, v82v2, t, "equal-map-v82-noaddr")
- if v == nil {
- v82v2 = nil
- } else {
- v82v2 = make(map[uint]int, len(v))
- } // reset map
- testUnmarshalErr(&v82v2, bs82, h, t, "dec-map-v82-p-len")
- testDeepEqualErr(v82v1, v82v2, t, "equal-map-v82-p-len")
- bs82 = testMarshalErr(&v82v1, h, t, "enc-map-v82-p")
- v82v2 = nil
- testUnmarshalErr(&v82v2, bs82, h, t, "dec-map-v82-p-nil")
- testDeepEqualErr(v82v1, v82v2, t, "equal-map-v82-p-nil")
- // ...
- if v == nil {
- v82v2 = nil
- } else {
- v82v2 = make(map[uint]int, len(v))
- } // reset map
- var v82v3, v82v4 typMapMapUintInt
- v82v3 = typMapMapUintInt(v82v1)
- v82v4 = typMapMapUintInt(v82v2)
- bs82 = testMarshalErr(v82v3, h, t, "enc-map-v82-custom")
- testUnmarshalErr(v82v4, bs82, h, t, "dec-map-v82-p-len")
- testDeepEqualErr(v82v3, v82v4, t, "equal-map-v82-p-len")
- }
- for _, v := range []map[uint]int8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v83: %v\n", v)
- var v83v1, v83v2 map[uint]int8
- v83v1 = v
- bs83 := testMarshalErr(v83v1, h, t, "enc-map-v83")
- if v == nil {
- v83v2 = nil
- } else {
- v83v2 = make(map[uint]int8, len(v))
- } // reset map
- testUnmarshalErr(v83v2, bs83, h, t, "dec-map-v83")
- testDeepEqualErr(v83v1, v83v2, t, "equal-map-v83")
- if v == nil {
- v83v2 = nil
- } else {
- v83v2 = make(map[uint]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v83v2), bs83, h, t, "dec-map-v83-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v83v1, v83v2, t, "equal-map-v83-noaddr")
- if v == nil {
- v83v2 = nil
- } else {
- v83v2 = make(map[uint]int8, len(v))
- } // reset map
- testUnmarshalErr(&v83v2, bs83, h, t, "dec-map-v83-p-len")
- testDeepEqualErr(v83v1, v83v2, t, "equal-map-v83-p-len")
- bs83 = testMarshalErr(&v83v1, h, t, "enc-map-v83-p")
- v83v2 = nil
- testUnmarshalErr(&v83v2, bs83, h, t, "dec-map-v83-p-nil")
- testDeepEqualErr(v83v1, v83v2, t, "equal-map-v83-p-nil")
- // ...
- if v == nil {
- v83v2 = nil
- } else {
- v83v2 = make(map[uint]int8, len(v))
- } // reset map
- var v83v3, v83v4 typMapMapUintInt8
- v83v3 = typMapMapUintInt8(v83v1)
- v83v4 = typMapMapUintInt8(v83v2)
- bs83 = testMarshalErr(v83v3, h, t, "enc-map-v83-custom")
- testUnmarshalErr(v83v4, bs83, h, t, "dec-map-v83-p-len")
- testDeepEqualErr(v83v3, v83v4, t, "equal-map-v83-p-len")
- }
- for _, v := range []map[uint]int16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v84: %v\n", v)
- var v84v1, v84v2 map[uint]int16
- v84v1 = v
- bs84 := testMarshalErr(v84v1, h, t, "enc-map-v84")
- if v == nil {
- v84v2 = nil
- } else {
- v84v2 = make(map[uint]int16, len(v))
- } // reset map
- testUnmarshalErr(v84v2, bs84, h, t, "dec-map-v84")
- testDeepEqualErr(v84v1, v84v2, t, "equal-map-v84")
- if v == nil {
- v84v2 = nil
- } else {
- v84v2 = make(map[uint]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v84v2), bs84, h, t, "dec-map-v84-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v84v1, v84v2, t, "equal-map-v84-noaddr")
- if v == nil {
- v84v2 = nil
- } else {
- v84v2 = make(map[uint]int16, len(v))
- } // reset map
- testUnmarshalErr(&v84v2, bs84, h, t, "dec-map-v84-p-len")
- testDeepEqualErr(v84v1, v84v2, t, "equal-map-v84-p-len")
- bs84 = testMarshalErr(&v84v1, h, t, "enc-map-v84-p")
- v84v2 = nil
- testUnmarshalErr(&v84v2, bs84, h, t, "dec-map-v84-p-nil")
- testDeepEqualErr(v84v1, v84v2, t, "equal-map-v84-p-nil")
- // ...
- if v == nil {
- v84v2 = nil
- } else {
- v84v2 = make(map[uint]int16, len(v))
- } // reset map
- var v84v3, v84v4 typMapMapUintInt16
- v84v3 = typMapMapUintInt16(v84v1)
- v84v4 = typMapMapUintInt16(v84v2)
- bs84 = testMarshalErr(v84v3, h, t, "enc-map-v84-custom")
- testUnmarshalErr(v84v4, bs84, h, t, "dec-map-v84-p-len")
- testDeepEqualErr(v84v3, v84v4, t, "equal-map-v84-p-len")
- }
- for _, v := range []map[uint]int32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v85: %v\n", v)
- var v85v1, v85v2 map[uint]int32
- v85v1 = v
- bs85 := testMarshalErr(v85v1, h, t, "enc-map-v85")
- if v == nil {
- v85v2 = nil
- } else {
- v85v2 = make(map[uint]int32, len(v))
- } // reset map
- testUnmarshalErr(v85v2, bs85, h, t, "dec-map-v85")
- testDeepEqualErr(v85v1, v85v2, t, "equal-map-v85")
- if v == nil {
- v85v2 = nil
- } else {
- v85v2 = make(map[uint]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v85v2), bs85, h, t, "dec-map-v85-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v85v1, v85v2, t, "equal-map-v85-noaddr")
- if v == nil {
- v85v2 = nil
- } else {
- v85v2 = make(map[uint]int32, len(v))
- } // reset map
- testUnmarshalErr(&v85v2, bs85, h, t, "dec-map-v85-p-len")
- testDeepEqualErr(v85v1, v85v2, t, "equal-map-v85-p-len")
- bs85 = testMarshalErr(&v85v1, h, t, "enc-map-v85-p")
- v85v2 = nil
- testUnmarshalErr(&v85v2, bs85, h, t, "dec-map-v85-p-nil")
- testDeepEqualErr(v85v1, v85v2, t, "equal-map-v85-p-nil")
- // ...
- if v == nil {
- v85v2 = nil
- } else {
- v85v2 = make(map[uint]int32, len(v))
- } // reset map
- var v85v3, v85v4 typMapMapUintInt32
- v85v3 = typMapMapUintInt32(v85v1)
- v85v4 = typMapMapUintInt32(v85v2)
- bs85 = testMarshalErr(v85v3, h, t, "enc-map-v85-custom")
- testUnmarshalErr(v85v4, bs85, h, t, "dec-map-v85-p-len")
- testDeepEqualErr(v85v3, v85v4, t, "equal-map-v85-p-len")
- }
- for _, v := range []map[uint]int64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v86: %v\n", v)
- var v86v1, v86v2 map[uint]int64
- v86v1 = v
- bs86 := testMarshalErr(v86v1, h, t, "enc-map-v86")
- if v == nil {
- v86v2 = nil
- } else {
- v86v2 = make(map[uint]int64, len(v))
- } // reset map
- testUnmarshalErr(v86v2, bs86, h, t, "dec-map-v86")
- testDeepEqualErr(v86v1, v86v2, t, "equal-map-v86")
- if v == nil {
- v86v2 = nil
- } else {
- v86v2 = make(map[uint]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v86v2), bs86, h, t, "dec-map-v86-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v86v1, v86v2, t, "equal-map-v86-noaddr")
- if v == nil {
- v86v2 = nil
- } else {
- v86v2 = make(map[uint]int64, len(v))
- } // reset map
- testUnmarshalErr(&v86v2, bs86, h, t, "dec-map-v86-p-len")
- testDeepEqualErr(v86v1, v86v2, t, "equal-map-v86-p-len")
- bs86 = testMarshalErr(&v86v1, h, t, "enc-map-v86-p")
- v86v2 = nil
- testUnmarshalErr(&v86v2, bs86, h, t, "dec-map-v86-p-nil")
- testDeepEqualErr(v86v1, v86v2, t, "equal-map-v86-p-nil")
- // ...
- if v == nil {
- v86v2 = nil
- } else {
- v86v2 = make(map[uint]int64, len(v))
- } // reset map
- var v86v3, v86v4 typMapMapUintInt64
- v86v3 = typMapMapUintInt64(v86v1)
- v86v4 = typMapMapUintInt64(v86v2)
- bs86 = testMarshalErr(v86v3, h, t, "enc-map-v86-custom")
- testUnmarshalErr(v86v4, bs86, h, t, "dec-map-v86-p-len")
- testDeepEqualErr(v86v3, v86v4, t, "equal-map-v86-p-len")
- }
- for _, v := range []map[uint]float32{nil, {}, {33: 0, 44: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v87: %v\n", v)
- var v87v1, v87v2 map[uint]float32
- v87v1 = v
- bs87 := testMarshalErr(v87v1, h, t, "enc-map-v87")
- if v == nil {
- v87v2 = nil
- } else {
- v87v2 = make(map[uint]float32, len(v))
- } // reset map
- testUnmarshalErr(v87v2, bs87, h, t, "dec-map-v87")
- testDeepEqualErr(v87v1, v87v2, t, "equal-map-v87")
- if v == nil {
- v87v2 = nil
- } else {
- v87v2 = make(map[uint]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v87v2), bs87, h, t, "dec-map-v87-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v87v1, v87v2, t, "equal-map-v87-noaddr")
- if v == nil {
- v87v2 = nil
- } else {
- v87v2 = make(map[uint]float32, len(v))
- } // reset map
- testUnmarshalErr(&v87v2, bs87, h, t, "dec-map-v87-p-len")
- testDeepEqualErr(v87v1, v87v2, t, "equal-map-v87-p-len")
- bs87 = testMarshalErr(&v87v1, h, t, "enc-map-v87-p")
- v87v2 = nil
- testUnmarshalErr(&v87v2, bs87, h, t, "dec-map-v87-p-nil")
- testDeepEqualErr(v87v1, v87v2, t, "equal-map-v87-p-nil")
- // ...
- if v == nil {
- v87v2 = nil
- } else {
- v87v2 = make(map[uint]float32, len(v))
- } // reset map
- var v87v3, v87v4 typMapMapUintFloat32
- v87v3 = typMapMapUintFloat32(v87v1)
- v87v4 = typMapMapUintFloat32(v87v2)
- bs87 = testMarshalErr(v87v3, h, t, "enc-map-v87-custom")
- testUnmarshalErr(v87v4, bs87, h, t, "dec-map-v87-p-len")
- testDeepEqualErr(v87v3, v87v4, t, "equal-map-v87-p-len")
- }
- for _, v := range []map[uint]float64{nil, {}, {33: 0, 44: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v88: %v\n", v)
- var v88v1, v88v2 map[uint]float64
- v88v1 = v
- bs88 := testMarshalErr(v88v1, h, t, "enc-map-v88")
- if v == nil {
- v88v2 = nil
- } else {
- v88v2 = make(map[uint]float64, len(v))
- } // reset map
- testUnmarshalErr(v88v2, bs88, h, t, "dec-map-v88")
- testDeepEqualErr(v88v1, v88v2, t, "equal-map-v88")
- if v == nil {
- v88v2 = nil
- } else {
- v88v2 = make(map[uint]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v88v2), bs88, h, t, "dec-map-v88-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v88v1, v88v2, t, "equal-map-v88-noaddr")
- if v == nil {
- v88v2 = nil
- } else {
- v88v2 = make(map[uint]float64, len(v))
- } // reset map
- testUnmarshalErr(&v88v2, bs88, h, t, "dec-map-v88-p-len")
- testDeepEqualErr(v88v1, v88v2, t, "equal-map-v88-p-len")
- bs88 = testMarshalErr(&v88v1, h, t, "enc-map-v88-p")
- v88v2 = nil
- testUnmarshalErr(&v88v2, bs88, h, t, "dec-map-v88-p-nil")
- testDeepEqualErr(v88v1, v88v2, t, "equal-map-v88-p-nil")
- // ...
- if v == nil {
- v88v2 = nil
- } else {
- v88v2 = make(map[uint]float64, len(v))
- } // reset map
- var v88v3, v88v4 typMapMapUintFloat64
- v88v3 = typMapMapUintFloat64(v88v1)
- v88v4 = typMapMapUintFloat64(v88v2)
- bs88 = testMarshalErr(v88v3, h, t, "enc-map-v88-custom")
- testUnmarshalErr(v88v4, bs88, h, t, "dec-map-v88-p-len")
- testDeepEqualErr(v88v3, v88v4, t, "equal-map-v88-p-len")
- }
- for _, v := range []map[uint]bool{nil, {}, {33: false, 44: true}} {
- // fmt.Printf(">>>> running mammoth map v89: %v\n", v)
- var v89v1, v89v2 map[uint]bool
- v89v1 = v
- bs89 := testMarshalErr(v89v1, h, t, "enc-map-v89")
- if v == nil {
- v89v2 = nil
- } else {
- v89v2 = make(map[uint]bool, len(v))
- } // reset map
- testUnmarshalErr(v89v2, bs89, h, t, "dec-map-v89")
- testDeepEqualErr(v89v1, v89v2, t, "equal-map-v89")
- if v == nil {
- v89v2 = nil
- } else {
- v89v2 = make(map[uint]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v89v2), bs89, h, t, "dec-map-v89-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v89v1, v89v2, t, "equal-map-v89-noaddr")
- if v == nil {
- v89v2 = nil
- } else {
- v89v2 = make(map[uint]bool, len(v))
- } // reset map
- testUnmarshalErr(&v89v2, bs89, h, t, "dec-map-v89-p-len")
- testDeepEqualErr(v89v1, v89v2, t, "equal-map-v89-p-len")
- bs89 = testMarshalErr(&v89v1, h, t, "enc-map-v89-p")
- v89v2 = nil
- testUnmarshalErr(&v89v2, bs89, h, t, "dec-map-v89-p-nil")
- testDeepEqualErr(v89v1, v89v2, t, "equal-map-v89-p-nil")
- // ...
- if v == nil {
- v89v2 = nil
- } else {
- v89v2 = make(map[uint]bool, len(v))
- } // reset map
- var v89v3, v89v4 typMapMapUintBool
- v89v3 = typMapMapUintBool(v89v1)
- v89v4 = typMapMapUintBool(v89v2)
- bs89 = testMarshalErr(v89v3, h, t, "enc-map-v89-custom")
- testUnmarshalErr(v89v4, bs89, h, t, "dec-map-v89-p-len")
- testDeepEqualErr(v89v3, v89v4, t, "equal-map-v89-p-len")
- }
- for _, v := range []map[uint8]interface{}{nil, {}, {33: nil, 44: "string-is-an-interface"}} {
- // fmt.Printf(">>>> running mammoth map v91: %v\n", v)
- var v91v1, v91v2 map[uint8]interface{}
- v91v1 = v
- bs91 := testMarshalErr(v91v1, h, t, "enc-map-v91")
- if v == nil {
- v91v2 = nil
- } else {
- v91v2 = make(map[uint8]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v91v2, bs91, h, t, "dec-map-v91")
- testDeepEqualErr(v91v1, v91v2, t, "equal-map-v91")
- if v == nil {
- v91v2 = nil
- } else {
- v91v2 = make(map[uint8]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v91v2), bs91, h, t, "dec-map-v91-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v91v1, v91v2, t, "equal-map-v91-noaddr")
- if v == nil {
- v91v2 = nil
- } else {
- v91v2 = make(map[uint8]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v91v2, bs91, h, t, "dec-map-v91-p-len")
- testDeepEqualErr(v91v1, v91v2, t, "equal-map-v91-p-len")
- bs91 = testMarshalErr(&v91v1, h, t, "enc-map-v91-p")
- v91v2 = nil
- testUnmarshalErr(&v91v2, bs91, h, t, "dec-map-v91-p-nil")
- testDeepEqualErr(v91v1, v91v2, t, "equal-map-v91-p-nil")
- // ...
- if v == nil {
- v91v2 = nil
- } else {
- v91v2 = make(map[uint8]interface{}, len(v))
- } // reset map
- var v91v3, v91v4 typMapMapUint8Intf
- v91v3 = typMapMapUint8Intf(v91v1)
- v91v4 = typMapMapUint8Intf(v91v2)
- bs91 = testMarshalErr(v91v3, h, t, "enc-map-v91-custom")
- testUnmarshalErr(v91v4, bs91, h, t, "dec-map-v91-p-len")
- testDeepEqualErr(v91v3, v91v4, t, "equal-map-v91-p-len")
- }
- for _, v := range []map[uint8]string{nil, {}, {33: "", 44: "some-string"}} {
- // fmt.Printf(">>>> running mammoth map v92: %v\n", v)
- var v92v1, v92v2 map[uint8]string
- v92v1 = v
- bs92 := testMarshalErr(v92v1, h, t, "enc-map-v92")
- if v == nil {
- v92v2 = nil
- } else {
- v92v2 = make(map[uint8]string, len(v))
- } // reset map
- testUnmarshalErr(v92v2, bs92, h, t, "dec-map-v92")
- testDeepEqualErr(v92v1, v92v2, t, "equal-map-v92")
- if v == nil {
- v92v2 = nil
- } else {
- v92v2 = make(map[uint8]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v92v2), bs92, h, t, "dec-map-v92-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v92v1, v92v2, t, "equal-map-v92-noaddr")
- if v == nil {
- v92v2 = nil
- } else {
- v92v2 = make(map[uint8]string, len(v))
- } // reset map
- testUnmarshalErr(&v92v2, bs92, h, t, "dec-map-v92-p-len")
- testDeepEqualErr(v92v1, v92v2, t, "equal-map-v92-p-len")
- bs92 = testMarshalErr(&v92v1, h, t, "enc-map-v92-p")
- v92v2 = nil
- testUnmarshalErr(&v92v2, bs92, h, t, "dec-map-v92-p-nil")
- testDeepEqualErr(v92v1, v92v2, t, "equal-map-v92-p-nil")
- // ...
- if v == nil {
- v92v2 = nil
- } else {
- v92v2 = make(map[uint8]string, len(v))
- } // reset map
- var v92v3, v92v4 typMapMapUint8String
- v92v3 = typMapMapUint8String(v92v1)
- v92v4 = typMapMapUint8String(v92v2)
- bs92 = testMarshalErr(v92v3, h, t, "enc-map-v92-custom")
- testUnmarshalErr(v92v4, bs92, h, t, "dec-map-v92-p-len")
- testDeepEqualErr(v92v3, v92v4, t, "equal-map-v92-p-len")
- }
- for _, v := range []map[uint8]uint{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v93: %v\n", v)
- var v93v1, v93v2 map[uint8]uint
- v93v1 = v
- bs93 := testMarshalErr(v93v1, h, t, "enc-map-v93")
- if v == nil {
- v93v2 = nil
- } else {
- v93v2 = make(map[uint8]uint, len(v))
- } // reset map
- testUnmarshalErr(v93v2, bs93, h, t, "dec-map-v93")
- testDeepEqualErr(v93v1, v93v2, t, "equal-map-v93")
- if v == nil {
- v93v2 = nil
- } else {
- v93v2 = make(map[uint8]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v93v2), bs93, h, t, "dec-map-v93-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v93v1, v93v2, t, "equal-map-v93-noaddr")
- if v == nil {
- v93v2 = nil
- } else {
- v93v2 = make(map[uint8]uint, len(v))
- } // reset map
- testUnmarshalErr(&v93v2, bs93, h, t, "dec-map-v93-p-len")
- testDeepEqualErr(v93v1, v93v2, t, "equal-map-v93-p-len")
- bs93 = testMarshalErr(&v93v1, h, t, "enc-map-v93-p")
- v93v2 = nil
- testUnmarshalErr(&v93v2, bs93, h, t, "dec-map-v93-p-nil")
- testDeepEqualErr(v93v1, v93v2, t, "equal-map-v93-p-nil")
- // ...
- if v == nil {
- v93v2 = nil
- } else {
- v93v2 = make(map[uint8]uint, len(v))
- } // reset map
- var v93v3, v93v4 typMapMapUint8Uint
- v93v3 = typMapMapUint8Uint(v93v1)
- v93v4 = typMapMapUint8Uint(v93v2)
- bs93 = testMarshalErr(v93v3, h, t, "enc-map-v93-custom")
- testUnmarshalErr(v93v4, bs93, h, t, "dec-map-v93-p-len")
- testDeepEqualErr(v93v3, v93v4, t, "equal-map-v93-p-len")
- }
- for _, v := range []map[uint8]uint8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v94: %v\n", v)
- var v94v1, v94v2 map[uint8]uint8
- v94v1 = v
- bs94 := testMarshalErr(v94v1, h, t, "enc-map-v94")
- if v == nil {
- v94v2 = nil
- } else {
- v94v2 = make(map[uint8]uint8, len(v))
- } // reset map
- testUnmarshalErr(v94v2, bs94, h, t, "dec-map-v94")
- testDeepEqualErr(v94v1, v94v2, t, "equal-map-v94")
- if v == nil {
- v94v2 = nil
- } else {
- v94v2 = make(map[uint8]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v94v2), bs94, h, t, "dec-map-v94-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v94v1, v94v2, t, "equal-map-v94-noaddr")
- if v == nil {
- v94v2 = nil
- } else {
- v94v2 = make(map[uint8]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v94v2, bs94, h, t, "dec-map-v94-p-len")
- testDeepEqualErr(v94v1, v94v2, t, "equal-map-v94-p-len")
- bs94 = testMarshalErr(&v94v1, h, t, "enc-map-v94-p")
- v94v2 = nil
- testUnmarshalErr(&v94v2, bs94, h, t, "dec-map-v94-p-nil")
- testDeepEqualErr(v94v1, v94v2, t, "equal-map-v94-p-nil")
- // ...
- if v == nil {
- v94v2 = nil
- } else {
- v94v2 = make(map[uint8]uint8, len(v))
- } // reset map
- var v94v3, v94v4 typMapMapUint8Uint8
- v94v3 = typMapMapUint8Uint8(v94v1)
- v94v4 = typMapMapUint8Uint8(v94v2)
- bs94 = testMarshalErr(v94v3, h, t, "enc-map-v94-custom")
- testUnmarshalErr(v94v4, bs94, h, t, "dec-map-v94-p-len")
- testDeepEqualErr(v94v3, v94v4, t, "equal-map-v94-p-len")
- }
- for _, v := range []map[uint8]uint16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v95: %v\n", v)
- var v95v1, v95v2 map[uint8]uint16
- v95v1 = v
- bs95 := testMarshalErr(v95v1, h, t, "enc-map-v95")
- if v == nil {
- v95v2 = nil
- } else {
- v95v2 = make(map[uint8]uint16, len(v))
- } // reset map
- testUnmarshalErr(v95v2, bs95, h, t, "dec-map-v95")
- testDeepEqualErr(v95v1, v95v2, t, "equal-map-v95")
- if v == nil {
- v95v2 = nil
- } else {
- v95v2 = make(map[uint8]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v95v2), bs95, h, t, "dec-map-v95-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v95v1, v95v2, t, "equal-map-v95-noaddr")
- if v == nil {
- v95v2 = nil
- } else {
- v95v2 = make(map[uint8]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v95v2, bs95, h, t, "dec-map-v95-p-len")
- testDeepEqualErr(v95v1, v95v2, t, "equal-map-v95-p-len")
- bs95 = testMarshalErr(&v95v1, h, t, "enc-map-v95-p")
- v95v2 = nil
- testUnmarshalErr(&v95v2, bs95, h, t, "dec-map-v95-p-nil")
- testDeepEqualErr(v95v1, v95v2, t, "equal-map-v95-p-nil")
- // ...
- if v == nil {
- v95v2 = nil
- } else {
- v95v2 = make(map[uint8]uint16, len(v))
- } // reset map
- var v95v3, v95v4 typMapMapUint8Uint16
- v95v3 = typMapMapUint8Uint16(v95v1)
- v95v4 = typMapMapUint8Uint16(v95v2)
- bs95 = testMarshalErr(v95v3, h, t, "enc-map-v95-custom")
- testUnmarshalErr(v95v4, bs95, h, t, "dec-map-v95-p-len")
- testDeepEqualErr(v95v3, v95v4, t, "equal-map-v95-p-len")
- }
- for _, v := range []map[uint8]uint32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v96: %v\n", v)
- var v96v1, v96v2 map[uint8]uint32
- v96v1 = v
- bs96 := testMarshalErr(v96v1, h, t, "enc-map-v96")
- if v == nil {
- v96v2 = nil
- } else {
- v96v2 = make(map[uint8]uint32, len(v))
- } // reset map
- testUnmarshalErr(v96v2, bs96, h, t, "dec-map-v96")
- testDeepEqualErr(v96v1, v96v2, t, "equal-map-v96")
- if v == nil {
- v96v2 = nil
- } else {
- v96v2 = make(map[uint8]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v96v2), bs96, h, t, "dec-map-v96-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v96v1, v96v2, t, "equal-map-v96-noaddr")
- if v == nil {
- v96v2 = nil
- } else {
- v96v2 = make(map[uint8]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v96v2, bs96, h, t, "dec-map-v96-p-len")
- testDeepEqualErr(v96v1, v96v2, t, "equal-map-v96-p-len")
- bs96 = testMarshalErr(&v96v1, h, t, "enc-map-v96-p")
- v96v2 = nil
- testUnmarshalErr(&v96v2, bs96, h, t, "dec-map-v96-p-nil")
- testDeepEqualErr(v96v1, v96v2, t, "equal-map-v96-p-nil")
- // ...
- if v == nil {
- v96v2 = nil
- } else {
- v96v2 = make(map[uint8]uint32, len(v))
- } // reset map
- var v96v3, v96v4 typMapMapUint8Uint32
- v96v3 = typMapMapUint8Uint32(v96v1)
- v96v4 = typMapMapUint8Uint32(v96v2)
- bs96 = testMarshalErr(v96v3, h, t, "enc-map-v96-custom")
- testUnmarshalErr(v96v4, bs96, h, t, "dec-map-v96-p-len")
- testDeepEqualErr(v96v3, v96v4, t, "equal-map-v96-p-len")
- }
- for _, v := range []map[uint8]uint64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v97: %v\n", v)
- var v97v1, v97v2 map[uint8]uint64
- v97v1 = v
- bs97 := testMarshalErr(v97v1, h, t, "enc-map-v97")
- if v == nil {
- v97v2 = nil
- } else {
- v97v2 = make(map[uint8]uint64, len(v))
- } // reset map
- testUnmarshalErr(v97v2, bs97, h, t, "dec-map-v97")
- testDeepEqualErr(v97v1, v97v2, t, "equal-map-v97")
- if v == nil {
- v97v2 = nil
- } else {
- v97v2 = make(map[uint8]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v97v2), bs97, h, t, "dec-map-v97-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v97v1, v97v2, t, "equal-map-v97-noaddr")
- if v == nil {
- v97v2 = nil
- } else {
- v97v2 = make(map[uint8]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v97v2, bs97, h, t, "dec-map-v97-p-len")
- testDeepEqualErr(v97v1, v97v2, t, "equal-map-v97-p-len")
- bs97 = testMarshalErr(&v97v1, h, t, "enc-map-v97-p")
- v97v2 = nil
- testUnmarshalErr(&v97v2, bs97, h, t, "dec-map-v97-p-nil")
- testDeepEqualErr(v97v1, v97v2, t, "equal-map-v97-p-nil")
- // ...
- if v == nil {
- v97v2 = nil
- } else {
- v97v2 = make(map[uint8]uint64, len(v))
- } // reset map
- var v97v3, v97v4 typMapMapUint8Uint64
- v97v3 = typMapMapUint8Uint64(v97v1)
- v97v4 = typMapMapUint8Uint64(v97v2)
- bs97 = testMarshalErr(v97v3, h, t, "enc-map-v97-custom")
- testUnmarshalErr(v97v4, bs97, h, t, "dec-map-v97-p-len")
- testDeepEqualErr(v97v3, v97v4, t, "equal-map-v97-p-len")
- }
- for _, v := range []map[uint8]uintptr{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v98: %v\n", v)
- var v98v1, v98v2 map[uint8]uintptr
- v98v1 = v
- bs98 := testMarshalErr(v98v1, h, t, "enc-map-v98")
- if v == nil {
- v98v2 = nil
- } else {
- v98v2 = make(map[uint8]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v98v2, bs98, h, t, "dec-map-v98")
- testDeepEqualErr(v98v1, v98v2, t, "equal-map-v98")
- if v == nil {
- v98v2 = nil
- } else {
- v98v2 = make(map[uint8]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v98v2), bs98, h, t, "dec-map-v98-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v98v1, v98v2, t, "equal-map-v98-noaddr")
- if v == nil {
- v98v2 = nil
- } else {
- v98v2 = make(map[uint8]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v98v2, bs98, h, t, "dec-map-v98-p-len")
- testDeepEqualErr(v98v1, v98v2, t, "equal-map-v98-p-len")
- bs98 = testMarshalErr(&v98v1, h, t, "enc-map-v98-p")
- v98v2 = nil
- testUnmarshalErr(&v98v2, bs98, h, t, "dec-map-v98-p-nil")
- testDeepEqualErr(v98v1, v98v2, t, "equal-map-v98-p-nil")
- // ...
- if v == nil {
- v98v2 = nil
- } else {
- v98v2 = make(map[uint8]uintptr, len(v))
- } // reset map
- var v98v3, v98v4 typMapMapUint8Uintptr
- v98v3 = typMapMapUint8Uintptr(v98v1)
- v98v4 = typMapMapUint8Uintptr(v98v2)
- bs98 = testMarshalErr(v98v3, h, t, "enc-map-v98-custom")
- testUnmarshalErr(v98v4, bs98, h, t, "dec-map-v98-p-len")
- testDeepEqualErr(v98v3, v98v4, t, "equal-map-v98-p-len")
- }
- for _, v := range []map[uint8]int{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v99: %v\n", v)
- var v99v1, v99v2 map[uint8]int
- v99v1 = v
- bs99 := testMarshalErr(v99v1, h, t, "enc-map-v99")
- if v == nil {
- v99v2 = nil
- } else {
- v99v2 = make(map[uint8]int, len(v))
- } // reset map
- testUnmarshalErr(v99v2, bs99, h, t, "dec-map-v99")
- testDeepEqualErr(v99v1, v99v2, t, "equal-map-v99")
- if v == nil {
- v99v2 = nil
- } else {
- v99v2 = make(map[uint8]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v99v2), bs99, h, t, "dec-map-v99-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v99v1, v99v2, t, "equal-map-v99-noaddr")
- if v == nil {
- v99v2 = nil
- } else {
- v99v2 = make(map[uint8]int, len(v))
- } // reset map
- testUnmarshalErr(&v99v2, bs99, h, t, "dec-map-v99-p-len")
- testDeepEqualErr(v99v1, v99v2, t, "equal-map-v99-p-len")
- bs99 = testMarshalErr(&v99v1, h, t, "enc-map-v99-p")
- v99v2 = nil
- testUnmarshalErr(&v99v2, bs99, h, t, "dec-map-v99-p-nil")
- testDeepEqualErr(v99v1, v99v2, t, "equal-map-v99-p-nil")
- // ...
- if v == nil {
- v99v2 = nil
- } else {
- v99v2 = make(map[uint8]int, len(v))
- } // reset map
- var v99v3, v99v4 typMapMapUint8Int
- v99v3 = typMapMapUint8Int(v99v1)
- v99v4 = typMapMapUint8Int(v99v2)
- bs99 = testMarshalErr(v99v3, h, t, "enc-map-v99-custom")
- testUnmarshalErr(v99v4, bs99, h, t, "dec-map-v99-p-len")
- testDeepEqualErr(v99v3, v99v4, t, "equal-map-v99-p-len")
- }
- for _, v := range []map[uint8]int8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v100: %v\n", v)
- var v100v1, v100v2 map[uint8]int8
- v100v1 = v
- bs100 := testMarshalErr(v100v1, h, t, "enc-map-v100")
- if v == nil {
- v100v2 = nil
- } else {
- v100v2 = make(map[uint8]int8, len(v))
- } // reset map
- testUnmarshalErr(v100v2, bs100, h, t, "dec-map-v100")
- testDeepEqualErr(v100v1, v100v2, t, "equal-map-v100")
- if v == nil {
- v100v2 = nil
- } else {
- v100v2 = make(map[uint8]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v100v2), bs100, h, t, "dec-map-v100-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v100v1, v100v2, t, "equal-map-v100-noaddr")
- if v == nil {
- v100v2 = nil
- } else {
- v100v2 = make(map[uint8]int8, len(v))
- } // reset map
- testUnmarshalErr(&v100v2, bs100, h, t, "dec-map-v100-p-len")
- testDeepEqualErr(v100v1, v100v2, t, "equal-map-v100-p-len")
- bs100 = testMarshalErr(&v100v1, h, t, "enc-map-v100-p")
- v100v2 = nil
- testUnmarshalErr(&v100v2, bs100, h, t, "dec-map-v100-p-nil")
- testDeepEqualErr(v100v1, v100v2, t, "equal-map-v100-p-nil")
- // ...
- if v == nil {
- v100v2 = nil
- } else {
- v100v2 = make(map[uint8]int8, len(v))
- } // reset map
- var v100v3, v100v4 typMapMapUint8Int8
- v100v3 = typMapMapUint8Int8(v100v1)
- v100v4 = typMapMapUint8Int8(v100v2)
- bs100 = testMarshalErr(v100v3, h, t, "enc-map-v100-custom")
- testUnmarshalErr(v100v4, bs100, h, t, "dec-map-v100-p-len")
- testDeepEqualErr(v100v3, v100v4, t, "equal-map-v100-p-len")
- }
- for _, v := range []map[uint8]int16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v101: %v\n", v)
- var v101v1, v101v2 map[uint8]int16
- v101v1 = v
- bs101 := testMarshalErr(v101v1, h, t, "enc-map-v101")
- if v == nil {
- v101v2 = nil
- } else {
- v101v2 = make(map[uint8]int16, len(v))
- } // reset map
- testUnmarshalErr(v101v2, bs101, h, t, "dec-map-v101")
- testDeepEqualErr(v101v1, v101v2, t, "equal-map-v101")
- if v == nil {
- v101v2 = nil
- } else {
- v101v2 = make(map[uint8]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v101v2), bs101, h, t, "dec-map-v101-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v101v1, v101v2, t, "equal-map-v101-noaddr")
- if v == nil {
- v101v2 = nil
- } else {
- v101v2 = make(map[uint8]int16, len(v))
- } // reset map
- testUnmarshalErr(&v101v2, bs101, h, t, "dec-map-v101-p-len")
- testDeepEqualErr(v101v1, v101v2, t, "equal-map-v101-p-len")
- bs101 = testMarshalErr(&v101v1, h, t, "enc-map-v101-p")
- v101v2 = nil
- testUnmarshalErr(&v101v2, bs101, h, t, "dec-map-v101-p-nil")
- testDeepEqualErr(v101v1, v101v2, t, "equal-map-v101-p-nil")
- // ...
- if v == nil {
- v101v2 = nil
- } else {
- v101v2 = make(map[uint8]int16, len(v))
- } // reset map
- var v101v3, v101v4 typMapMapUint8Int16
- v101v3 = typMapMapUint8Int16(v101v1)
- v101v4 = typMapMapUint8Int16(v101v2)
- bs101 = testMarshalErr(v101v3, h, t, "enc-map-v101-custom")
- testUnmarshalErr(v101v4, bs101, h, t, "dec-map-v101-p-len")
- testDeepEqualErr(v101v3, v101v4, t, "equal-map-v101-p-len")
- }
- for _, v := range []map[uint8]int32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v102: %v\n", v)
- var v102v1, v102v2 map[uint8]int32
- v102v1 = v
- bs102 := testMarshalErr(v102v1, h, t, "enc-map-v102")
- if v == nil {
- v102v2 = nil
- } else {
- v102v2 = make(map[uint8]int32, len(v))
- } // reset map
- testUnmarshalErr(v102v2, bs102, h, t, "dec-map-v102")
- testDeepEqualErr(v102v1, v102v2, t, "equal-map-v102")
- if v == nil {
- v102v2 = nil
- } else {
- v102v2 = make(map[uint8]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v102v2), bs102, h, t, "dec-map-v102-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v102v1, v102v2, t, "equal-map-v102-noaddr")
- if v == nil {
- v102v2 = nil
- } else {
- v102v2 = make(map[uint8]int32, len(v))
- } // reset map
- testUnmarshalErr(&v102v2, bs102, h, t, "dec-map-v102-p-len")
- testDeepEqualErr(v102v1, v102v2, t, "equal-map-v102-p-len")
- bs102 = testMarshalErr(&v102v1, h, t, "enc-map-v102-p")
- v102v2 = nil
- testUnmarshalErr(&v102v2, bs102, h, t, "dec-map-v102-p-nil")
- testDeepEqualErr(v102v1, v102v2, t, "equal-map-v102-p-nil")
- // ...
- if v == nil {
- v102v2 = nil
- } else {
- v102v2 = make(map[uint8]int32, len(v))
- } // reset map
- var v102v3, v102v4 typMapMapUint8Int32
- v102v3 = typMapMapUint8Int32(v102v1)
- v102v4 = typMapMapUint8Int32(v102v2)
- bs102 = testMarshalErr(v102v3, h, t, "enc-map-v102-custom")
- testUnmarshalErr(v102v4, bs102, h, t, "dec-map-v102-p-len")
- testDeepEqualErr(v102v3, v102v4, t, "equal-map-v102-p-len")
- }
- for _, v := range []map[uint8]int64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v103: %v\n", v)
- var v103v1, v103v2 map[uint8]int64
- v103v1 = v
- bs103 := testMarshalErr(v103v1, h, t, "enc-map-v103")
- if v == nil {
- v103v2 = nil
- } else {
- v103v2 = make(map[uint8]int64, len(v))
- } // reset map
- testUnmarshalErr(v103v2, bs103, h, t, "dec-map-v103")
- testDeepEqualErr(v103v1, v103v2, t, "equal-map-v103")
- if v == nil {
- v103v2 = nil
- } else {
- v103v2 = make(map[uint8]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v103v2), bs103, h, t, "dec-map-v103-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v103v1, v103v2, t, "equal-map-v103-noaddr")
- if v == nil {
- v103v2 = nil
- } else {
- v103v2 = make(map[uint8]int64, len(v))
- } // reset map
- testUnmarshalErr(&v103v2, bs103, h, t, "dec-map-v103-p-len")
- testDeepEqualErr(v103v1, v103v2, t, "equal-map-v103-p-len")
- bs103 = testMarshalErr(&v103v1, h, t, "enc-map-v103-p")
- v103v2 = nil
- testUnmarshalErr(&v103v2, bs103, h, t, "dec-map-v103-p-nil")
- testDeepEqualErr(v103v1, v103v2, t, "equal-map-v103-p-nil")
- // ...
- if v == nil {
- v103v2 = nil
- } else {
- v103v2 = make(map[uint8]int64, len(v))
- } // reset map
- var v103v3, v103v4 typMapMapUint8Int64
- v103v3 = typMapMapUint8Int64(v103v1)
- v103v4 = typMapMapUint8Int64(v103v2)
- bs103 = testMarshalErr(v103v3, h, t, "enc-map-v103-custom")
- testUnmarshalErr(v103v4, bs103, h, t, "dec-map-v103-p-len")
- testDeepEqualErr(v103v3, v103v4, t, "equal-map-v103-p-len")
- }
- for _, v := range []map[uint8]float32{nil, {}, {44: 0, 33: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v104: %v\n", v)
- var v104v1, v104v2 map[uint8]float32
- v104v1 = v
- bs104 := testMarshalErr(v104v1, h, t, "enc-map-v104")
- if v == nil {
- v104v2 = nil
- } else {
- v104v2 = make(map[uint8]float32, len(v))
- } // reset map
- testUnmarshalErr(v104v2, bs104, h, t, "dec-map-v104")
- testDeepEqualErr(v104v1, v104v2, t, "equal-map-v104")
- if v == nil {
- v104v2 = nil
- } else {
- v104v2 = make(map[uint8]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v104v2), bs104, h, t, "dec-map-v104-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v104v1, v104v2, t, "equal-map-v104-noaddr")
- if v == nil {
- v104v2 = nil
- } else {
- v104v2 = make(map[uint8]float32, len(v))
- } // reset map
- testUnmarshalErr(&v104v2, bs104, h, t, "dec-map-v104-p-len")
- testDeepEqualErr(v104v1, v104v2, t, "equal-map-v104-p-len")
- bs104 = testMarshalErr(&v104v1, h, t, "enc-map-v104-p")
- v104v2 = nil
- testUnmarshalErr(&v104v2, bs104, h, t, "dec-map-v104-p-nil")
- testDeepEqualErr(v104v1, v104v2, t, "equal-map-v104-p-nil")
- // ...
- if v == nil {
- v104v2 = nil
- } else {
- v104v2 = make(map[uint8]float32, len(v))
- } // reset map
- var v104v3, v104v4 typMapMapUint8Float32
- v104v3 = typMapMapUint8Float32(v104v1)
- v104v4 = typMapMapUint8Float32(v104v2)
- bs104 = testMarshalErr(v104v3, h, t, "enc-map-v104-custom")
- testUnmarshalErr(v104v4, bs104, h, t, "dec-map-v104-p-len")
- testDeepEqualErr(v104v3, v104v4, t, "equal-map-v104-p-len")
- }
- for _, v := range []map[uint8]float64{nil, {}, {44: 0, 33: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v105: %v\n", v)
- var v105v1, v105v2 map[uint8]float64
- v105v1 = v
- bs105 := testMarshalErr(v105v1, h, t, "enc-map-v105")
- if v == nil {
- v105v2 = nil
- } else {
- v105v2 = make(map[uint8]float64, len(v))
- } // reset map
- testUnmarshalErr(v105v2, bs105, h, t, "dec-map-v105")
- testDeepEqualErr(v105v1, v105v2, t, "equal-map-v105")
- if v == nil {
- v105v2 = nil
- } else {
- v105v2 = make(map[uint8]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v105v2), bs105, h, t, "dec-map-v105-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v105v1, v105v2, t, "equal-map-v105-noaddr")
- if v == nil {
- v105v2 = nil
- } else {
- v105v2 = make(map[uint8]float64, len(v))
- } // reset map
- testUnmarshalErr(&v105v2, bs105, h, t, "dec-map-v105-p-len")
- testDeepEqualErr(v105v1, v105v2, t, "equal-map-v105-p-len")
- bs105 = testMarshalErr(&v105v1, h, t, "enc-map-v105-p")
- v105v2 = nil
- testUnmarshalErr(&v105v2, bs105, h, t, "dec-map-v105-p-nil")
- testDeepEqualErr(v105v1, v105v2, t, "equal-map-v105-p-nil")
- // ...
- if v == nil {
- v105v2 = nil
- } else {
- v105v2 = make(map[uint8]float64, len(v))
- } // reset map
- var v105v3, v105v4 typMapMapUint8Float64
- v105v3 = typMapMapUint8Float64(v105v1)
- v105v4 = typMapMapUint8Float64(v105v2)
- bs105 = testMarshalErr(v105v3, h, t, "enc-map-v105-custom")
- testUnmarshalErr(v105v4, bs105, h, t, "dec-map-v105-p-len")
- testDeepEqualErr(v105v3, v105v4, t, "equal-map-v105-p-len")
- }
- for _, v := range []map[uint8]bool{nil, {}, {44: false, 33: true}} {
- // fmt.Printf(">>>> running mammoth map v106: %v\n", v)
- var v106v1, v106v2 map[uint8]bool
- v106v1 = v
- bs106 := testMarshalErr(v106v1, h, t, "enc-map-v106")
- if v == nil {
- v106v2 = nil
- } else {
- v106v2 = make(map[uint8]bool, len(v))
- } // reset map
- testUnmarshalErr(v106v2, bs106, h, t, "dec-map-v106")
- testDeepEqualErr(v106v1, v106v2, t, "equal-map-v106")
- if v == nil {
- v106v2 = nil
- } else {
- v106v2 = make(map[uint8]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v106v2), bs106, h, t, "dec-map-v106-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v106v1, v106v2, t, "equal-map-v106-noaddr")
- if v == nil {
- v106v2 = nil
- } else {
- v106v2 = make(map[uint8]bool, len(v))
- } // reset map
- testUnmarshalErr(&v106v2, bs106, h, t, "dec-map-v106-p-len")
- testDeepEqualErr(v106v1, v106v2, t, "equal-map-v106-p-len")
- bs106 = testMarshalErr(&v106v1, h, t, "enc-map-v106-p")
- v106v2 = nil
- testUnmarshalErr(&v106v2, bs106, h, t, "dec-map-v106-p-nil")
- testDeepEqualErr(v106v1, v106v2, t, "equal-map-v106-p-nil")
- // ...
- if v == nil {
- v106v2 = nil
- } else {
- v106v2 = make(map[uint8]bool, len(v))
- } // reset map
- var v106v3, v106v4 typMapMapUint8Bool
- v106v3 = typMapMapUint8Bool(v106v1)
- v106v4 = typMapMapUint8Bool(v106v2)
- bs106 = testMarshalErr(v106v3, h, t, "enc-map-v106-custom")
- testUnmarshalErr(v106v4, bs106, h, t, "dec-map-v106-p-len")
- testDeepEqualErr(v106v3, v106v4, t, "equal-map-v106-p-len")
- }
- for _, v := range []map[uint16]interface{}{nil, {}, {44: nil, 33: "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v109: %v\n", v)
- var v109v1, v109v2 map[uint16]interface{}
- v109v1 = v
- bs109 := testMarshalErr(v109v1, h, t, "enc-map-v109")
- if v == nil {
- v109v2 = nil
- } else {
- v109v2 = make(map[uint16]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v109v2, bs109, h, t, "dec-map-v109")
- testDeepEqualErr(v109v1, v109v2, t, "equal-map-v109")
- if v == nil {
- v109v2 = nil
- } else {
- v109v2 = make(map[uint16]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v109v2), bs109, h, t, "dec-map-v109-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v109v1, v109v2, t, "equal-map-v109-noaddr")
- if v == nil {
- v109v2 = nil
- } else {
- v109v2 = make(map[uint16]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v109v2, bs109, h, t, "dec-map-v109-p-len")
- testDeepEqualErr(v109v1, v109v2, t, "equal-map-v109-p-len")
- bs109 = testMarshalErr(&v109v1, h, t, "enc-map-v109-p")
- v109v2 = nil
- testUnmarshalErr(&v109v2, bs109, h, t, "dec-map-v109-p-nil")
- testDeepEqualErr(v109v1, v109v2, t, "equal-map-v109-p-nil")
- // ...
- if v == nil {
- v109v2 = nil
- } else {
- v109v2 = make(map[uint16]interface{}, len(v))
- } // reset map
- var v109v3, v109v4 typMapMapUint16Intf
- v109v3 = typMapMapUint16Intf(v109v1)
- v109v4 = typMapMapUint16Intf(v109v2)
- bs109 = testMarshalErr(v109v3, h, t, "enc-map-v109-custom")
- testUnmarshalErr(v109v4, bs109, h, t, "dec-map-v109-p-len")
- testDeepEqualErr(v109v3, v109v4, t, "equal-map-v109-p-len")
- }
- for _, v := range []map[uint16]string{nil, {}, {44: "", 33: "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v110: %v\n", v)
- var v110v1, v110v2 map[uint16]string
- v110v1 = v
- bs110 := testMarshalErr(v110v1, h, t, "enc-map-v110")
- if v == nil {
- v110v2 = nil
- } else {
- v110v2 = make(map[uint16]string, len(v))
- } // reset map
- testUnmarshalErr(v110v2, bs110, h, t, "dec-map-v110")
- testDeepEqualErr(v110v1, v110v2, t, "equal-map-v110")
- if v == nil {
- v110v2 = nil
- } else {
- v110v2 = make(map[uint16]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v110v2), bs110, h, t, "dec-map-v110-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v110v1, v110v2, t, "equal-map-v110-noaddr")
- if v == nil {
- v110v2 = nil
- } else {
- v110v2 = make(map[uint16]string, len(v))
- } // reset map
- testUnmarshalErr(&v110v2, bs110, h, t, "dec-map-v110-p-len")
- testDeepEqualErr(v110v1, v110v2, t, "equal-map-v110-p-len")
- bs110 = testMarshalErr(&v110v1, h, t, "enc-map-v110-p")
- v110v2 = nil
- testUnmarshalErr(&v110v2, bs110, h, t, "dec-map-v110-p-nil")
- testDeepEqualErr(v110v1, v110v2, t, "equal-map-v110-p-nil")
- // ...
- if v == nil {
- v110v2 = nil
- } else {
- v110v2 = make(map[uint16]string, len(v))
- } // reset map
- var v110v3, v110v4 typMapMapUint16String
- v110v3 = typMapMapUint16String(v110v1)
- v110v4 = typMapMapUint16String(v110v2)
- bs110 = testMarshalErr(v110v3, h, t, "enc-map-v110-custom")
- testUnmarshalErr(v110v4, bs110, h, t, "dec-map-v110-p-len")
- testDeepEqualErr(v110v3, v110v4, t, "equal-map-v110-p-len")
- }
- for _, v := range []map[uint16]uint{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v111: %v\n", v)
- var v111v1, v111v2 map[uint16]uint
- v111v1 = v
- bs111 := testMarshalErr(v111v1, h, t, "enc-map-v111")
- if v == nil {
- v111v2 = nil
- } else {
- v111v2 = make(map[uint16]uint, len(v))
- } // reset map
- testUnmarshalErr(v111v2, bs111, h, t, "dec-map-v111")
- testDeepEqualErr(v111v1, v111v2, t, "equal-map-v111")
- if v == nil {
- v111v2 = nil
- } else {
- v111v2 = make(map[uint16]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v111v2), bs111, h, t, "dec-map-v111-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v111v1, v111v2, t, "equal-map-v111-noaddr")
- if v == nil {
- v111v2 = nil
- } else {
- v111v2 = make(map[uint16]uint, len(v))
- } // reset map
- testUnmarshalErr(&v111v2, bs111, h, t, "dec-map-v111-p-len")
- testDeepEqualErr(v111v1, v111v2, t, "equal-map-v111-p-len")
- bs111 = testMarshalErr(&v111v1, h, t, "enc-map-v111-p")
- v111v2 = nil
- testUnmarshalErr(&v111v2, bs111, h, t, "dec-map-v111-p-nil")
- testDeepEqualErr(v111v1, v111v2, t, "equal-map-v111-p-nil")
- // ...
- if v == nil {
- v111v2 = nil
- } else {
- v111v2 = make(map[uint16]uint, len(v))
- } // reset map
- var v111v3, v111v4 typMapMapUint16Uint
- v111v3 = typMapMapUint16Uint(v111v1)
- v111v4 = typMapMapUint16Uint(v111v2)
- bs111 = testMarshalErr(v111v3, h, t, "enc-map-v111-custom")
- testUnmarshalErr(v111v4, bs111, h, t, "dec-map-v111-p-len")
- testDeepEqualErr(v111v3, v111v4, t, "equal-map-v111-p-len")
- }
- for _, v := range []map[uint16]uint8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v112: %v\n", v)
- var v112v1, v112v2 map[uint16]uint8
- v112v1 = v
- bs112 := testMarshalErr(v112v1, h, t, "enc-map-v112")
- if v == nil {
- v112v2 = nil
- } else {
- v112v2 = make(map[uint16]uint8, len(v))
- } // reset map
- testUnmarshalErr(v112v2, bs112, h, t, "dec-map-v112")
- testDeepEqualErr(v112v1, v112v2, t, "equal-map-v112")
- if v == nil {
- v112v2 = nil
- } else {
- v112v2 = make(map[uint16]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v112v2), bs112, h, t, "dec-map-v112-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v112v1, v112v2, t, "equal-map-v112-noaddr")
- if v == nil {
- v112v2 = nil
- } else {
- v112v2 = make(map[uint16]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v112v2, bs112, h, t, "dec-map-v112-p-len")
- testDeepEqualErr(v112v1, v112v2, t, "equal-map-v112-p-len")
- bs112 = testMarshalErr(&v112v1, h, t, "enc-map-v112-p")
- v112v2 = nil
- testUnmarshalErr(&v112v2, bs112, h, t, "dec-map-v112-p-nil")
- testDeepEqualErr(v112v1, v112v2, t, "equal-map-v112-p-nil")
- // ...
- if v == nil {
- v112v2 = nil
- } else {
- v112v2 = make(map[uint16]uint8, len(v))
- } // reset map
- var v112v3, v112v4 typMapMapUint16Uint8
- v112v3 = typMapMapUint16Uint8(v112v1)
- v112v4 = typMapMapUint16Uint8(v112v2)
- bs112 = testMarshalErr(v112v3, h, t, "enc-map-v112-custom")
- testUnmarshalErr(v112v4, bs112, h, t, "dec-map-v112-p-len")
- testDeepEqualErr(v112v3, v112v4, t, "equal-map-v112-p-len")
- }
- for _, v := range []map[uint16]uint16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v113: %v\n", v)
- var v113v1, v113v2 map[uint16]uint16
- v113v1 = v
- bs113 := testMarshalErr(v113v1, h, t, "enc-map-v113")
- if v == nil {
- v113v2 = nil
- } else {
- v113v2 = make(map[uint16]uint16, len(v))
- } // reset map
- testUnmarshalErr(v113v2, bs113, h, t, "dec-map-v113")
- testDeepEqualErr(v113v1, v113v2, t, "equal-map-v113")
- if v == nil {
- v113v2 = nil
- } else {
- v113v2 = make(map[uint16]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v113v2), bs113, h, t, "dec-map-v113-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v113v1, v113v2, t, "equal-map-v113-noaddr")
- if v == nil {
- v113v2 = nil
- } else {
- v113v2 = make(map[uint16]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v113v2, bs113, h, t, "dec-map-v113-p-len")
- testDeepEqualErr(v113v1, v113v2, t, "equal-map-v113-p-len")
- bs113 = testMarshalErr(&v113v1, h, t, "enc-map-v113-p")
- v113v2 = nil
- testUnmarshalErr(&v113v2, bs113, h, t, "dec-map-v113-p-nil")
- testDeepEqualErr(v113v1, v113v2, t, "equal-map-v113-p-nil")
- // ...
- if v == nil {
- v113v2 = nil
- } else {
- v113v2 = make(map[uint16]uint16, len(v))
- } // reset map
- var v113v3, v113v4 typMapMapUint16Uint16
- v113v3 = typMapMapUint16Uint16(v113v1)
- v113v4 = typMapMapUint16Uint16(v113v2)
- bs113 = testMarshalErr(v113v3, h, t, "enc-map-v113-custom")
- testUnmarshalErr(v113v4, bs113, h, t, "dec-map-v113-p-len")
- testDeepEqualErr(v113v3, v113v4, t, "equal-map-v113-p-len")
- }
- for _, v := range []map[uint16]uint32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v114: %v\n", v)
- var v114v1, v114v2 map[uint16]uint32
- v114v1 = v
- bs114 := testMarshalErr(v114v1, h, t, "enc-map-v114")
- if v == nil {
- v114v2 = nil
- } else {
- v114v2 = make(map[uint16]uint32, len(v))
- } // reset map
- testUnmarshalErr(v114v2, bs114, h, t, "dec-map-v114")
- testDeepEqualErr(v114v1, v114v2, t, "equal-map-v114")
- if v == nil {
- v114v2 = nil
- } else {
- v114v2 = make(map[uint16]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v114v2), bs114, h, t, "dec-map-v114-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v114v1, v114v2, t, "equal-map-v114-noaddr")
- if v == nil {
- v114v2 = nil
- } else {
- v114v2 = make(map[uint16]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v114v2, bs114, h, t, "dec-map-v114-p-len")
- testDeepEqualErr(v114v1, v114v2, t, "equal-map-v114-p-len")
- bs114 = testMarshalErr(&v114v1, h, t, "enc-map-v114-p")
- v114v2 = nil
- testUnmarshalErr(&v114v2, bs114, h, t, "dec-map-v114-p-nil")
- testDeepEqualErr(v114v1, v114v2, t, "equal-map-v114-p-nil")
- // ...
- if v == nil {
- v114v2 = nil
- } else {
- v114v2 = make(map[uint16]uint32, len(v))
- } // reset map
- var v114v3, v114v4 typMapMapUint16Uint32
- v114v3 = typMapMapUint16Uint32(v114v1)
- v114v4 = typMapMapUint16Uint32(v114v2)
- bs114 = testMarshalErr(v114v3, h, t, "enc-map-v114-custom")
- testUnmarshalErr(v114v4, bs114, h, t, "dec-map-v114-p-len")
- testDeepEqualErr(v114v3, v114v4, t, "equal-map-v114-p-len")
- }
- for _, v := range []map[uint16]uint64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v115: %v\n", v)
- var v115v1, v115v2 map[uint16]uint64
- v115v1 = v
- bs115 := testMarshalErr(v115v1, h, t, "enc-map-v115")
- if v == nil {
- v115v2 = nil
- } else {
- v115v2 = make(map[uint16]uint64, len(v))
- } // reset map
- testUnmarshalErr(v115v2, bs115, h, t, "dec-map-v115")
- testDeepEqualErr(v115v1, v115v2, t, "equal-map-v115")
- if v == nil {
- v115v2 = nil
- } else {
- v115v2 = make(map[uint16]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v115v2), bs115, h, t, "dec-map-v115-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v115v1, v115v2, t, "equal-map-v115-noaddr")
- if v == nil {
- v115v2 = nil
- } else {
- v115v2 = make(map[uint16]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v115v2, bs115, h, t, "dec-map-v115-p-len")
- testDeepEqualErr(v115v1, v115v2, t, "equal-map-v115-p-len")
- bs115 = testMarshalErr(&v115v1, h, t, "enc-map-v115-p")
- v115v2 = nil
- testUnmarshalErr(&v115v2, bs115, h, t, "dec-map-v115-p-nil")
- testDeepEqualErr(v115v1, v115v2, t, "equal-map-v115-p-nil")
- // ...
- if v == nil {
- v115v2 = nil
- } else {
- v115v2 = make(map[uint16]uint64, len(v))
- } // reset map
- var v115v3, v115v4 typMapMapUint16Uint64
- v115v3 = typMapMapUint16Uint64(v115v1)
- v115v4 = typMapMapUint16Uint64(v115v2)
- bs115 = testMarshalErr(v115v3, h, t, "enc-map-v115-custom")
- testUnmarshalErr(v115v4, bs115, h, t, "dec-map-v115-p-len")
- testDeepEqualErr(v115v3, v115v4, t, "equal-map-v115-p-len")
- }
- for _, v := range []map[uint16]uintptr{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v116: %v\n", v)
- var v116v1, v116v2 map[uint16]uintptr
- v116v1 = v
- bs116 := testMarshalErr(v116v1, h, t, "enc-map-v116")
- if v == nil {
- v116v2 = nil
- } else {
- v116v2 = make(map[uint16]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v116v2, bs116, h, t, "dec-map-v116")
- testDeepEqualErr(v116v1, v116v2, t, "equal-map-v116")
- if v == nil {
- v116v2 = nil
- } else {
- v116v2 = make(map[uint16]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v116v2), bs116, h, t, "dec-map-v116-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v116v1, v116v2, t, "equal-map-v116-noaddr")
- if v == nil {
- v116v2 = nil
- } else {
- v116v2 = make(map[uint16]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v116v2, bs116, h, t, "dec-map-v116-p-len")
- testDeepEqualErr(v116v1, v116v2, t, "equal-map-v116-p-len")
- bs116 = testMarshalErr(&v116v1, h, t, "enc-map-v116-p")
- v116v2 = nil
- testUnmarshalErr(&v116v2, bs116, h, t, "dec-map-v116-p-nil")
- testDeepEqualErr(v116v1, v116v2, t, "equal-map-v116-p-nil")
- // ...
- if v == nil {
- v116v2 = nil
- } else {
- v116v2 = make(map[uint16]uintptr, len(v))
- } // reset map
- var v116v3, v116v4 typMapMapUint16Uintptr
- v116v3 = typMapMapUint16Uintptr(v116v1)
- v116v4 = typMapMapUint16Uintptr(v116v2)
- bs116 = testMarshalErr(v116v3, h, t, "enc-map-v116-custom")
- testUnmarshalErr(v116v4, bs116, h, t, "dec-map-v116-p-len")
- testDeepEqualErr(v116v3, v116v4, t, "equal-map-v116-p-len")
- }
- for _, v := range []map[uint16]int{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v117: %v\n", v)
- var v117v1, v117v2 map[uint16]int
- v117v1 = v
- bs117 := testMarshalErr(v117v1, h, t, "enc-map-v117")
- if v == nil {
- v117v2 = nil
- } else {
- v117v2 = make(map[uint16]int, len(v))
- } // reset map
- testUnmarshalErr(v117v2, bs117, h, t, "dec-map-v117")
- testDeepEqualErr(v117v1, v117v2, t, "equal-map-v117")
- if v == nil {
- v117v2 = nil
- } else {
- v117v2 = make(map[uint16]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v117v2), bs117, h, t, "dec-map-v117-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v117v1, v117v2, t, "equal-map-v117-noaddr")
- if v == nil {
- v117v2 = nil
- } else {
- v117v2 = make(map[uint16]int, len(v))
- } // reset map
- testUnmarshalErr(&v117v2, bs117, h, t, "dec-map-v117-p-len")
- testDeepEqualErr(v117v1, v117v2, t, "equal-map-v117-p-len")
- bs117 = testMarshalErr(&v117v1, h, t, "enc-map-v117-p")
- v117v2 = nil
- testUnmarshalErr(&v117v2, bs117, h, t, "dec-map-v117-p-nil")
- testDeepEqualErr(v117v1, v117v2, t, "equal-map-v117-p-nil")
- // ...
- if v == nil {
- v117v2 = nil
- } else {
- v117v2 = make(map[uint16]int, len(v))
- } // reset map
- var v117v3, v117v4 typMapMapUint16Int
- v117v3 = typMapMapUint16Int(v117v1)
- v117v4 = typMapMapUint16Int(v117v2)
- bs117 = testMarshalErr(v117v3, h, t, "enc-map-v117-custom")
- testUnmarshalErr(v117v4, bs117, h, t, "dec-map-v117-p-len")
- testDeepEqualErr(v117v3, v117v4, t, "equal-map-v117-p-len")
- }
- for _, v := range []map[uint16]int8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v118: %v\n", v)
- var v118v1, v118v2 map[uint16]int8
- v118v1 = v
- bs118 := testMarshalErr(v118v1, h, t, "enc-map-v118")
- if v == nil {
- v118v2 = nil
- } else {
- v118v2 = make(map[uint16]int8, len(v))
- } // reset map
- testUnmarshalErr(v118v2, bs118, h, t, "dec-map-v118")
- testDeepEqualErr(v118v1, v118v2, t, "equal-map-v118")
- if v == nil {
- v118v2 = nil
- } else {
- v118v2 = make(map[uint16]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v118v2), bs118, h, t, "dec-map-v118-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v118v1, v118v2, t, "equal-map-v118-noaddr")
- if v == nil {
- v118v2 = nil
- } else {
- v118v2 = make(map[uint16]int8, len(v))
- } // reset map
- testUnmarshalErr(&v118v2, bs118, h, t, "dec-map-v118-p-len")
- testDeepEqualErr(v118v1, v118v2, t, "equal-map-v118-p-len")
- bs118 = testMarshalErr(&v118v1, h, t, "enc-map-v118-p")
- v118v2 = nil
- testUnmarshalErr(&v118v2, bs118, h, t, "dec-map-v118-p-nil")
- testDeepEqualErr(v118v1, v118v2, t, "equal-map-v118-p-nil")
- // ...
- if v == nil {
- v118v2 = nil
- } else {
- v118v2 = make(map[uint16]int8, len(v))
- } // reset map
- var v118v3, v118v4 typMapMapUint16Int8
- v118v3 = typMapMapUint16Int8(v118v1)
- v118v4 = typMapMapUint16Int8(v118v2)
- bs118 = testMarshalErr(v118v3, h, t, "enc-map-v118-custom")
- testUnmarshalErr(v118v4, bs118, h, t, "dec-map-v118-p-len")
- testDeepEqualErr(v118v3, v118v4, t, "equal-map-v118-p-len")
- }
- for _, v := range []map[uint16]int16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v119: %v\n", v)
- var v119v1, v119v2 map[uint16]int16
- v119v1 = v
- bs119 := testMarshalErr(v119v1, h, t, "enc-map-v119")
- if v == nil {
- v119v2 = nil
- } else {
- v119v2 = make(map[uint16]int16, len(v))
- } // reset map
- testUnmarshalErr(v119v2, bs119, h, t, "dec-map-v119")
- testDeepEqualErr(v119v1, v119v2, t, "equal-map-v119")
- if v == nil {
- v119v2 = nil
- } else {
- v119v2 = make(map[uint16]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v119v2), bs119, h, t, "dec-map-v119-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v119v1, v119v2, t, "equal-map-v119-noaddr")
- if v == nil {
- v119v2 = nil
- } else {
- v119v2 = make(map[uint16]int16, len(v))
- } // reset map
- testUnmarshalErr(&v119v2, bs119, h, t, "dec-map-v119-p-len")
- testDeepEqualErr(v119v1, v119v2, t, "equal-map-v119-p-len")
- bs119 = testMarshalErr(&v119v1, h, t, "enc-map-v119-p")
- v119v2 = nil
- testUnmarshalErr(&v119v2, bs119, h, t, "dec-map-v119-p-nil")
- testDeepEqualErr(v119v1, v119v2, t, "equal-map-v119-p-nil")
- // ...
- if v == nil {
- v119v2 = nil
- } else {
- v119v2 = make(map[uint16]int16, len(v))
- } // reset map
- var v119v3, v119v4 typMapMapUint16Int16
- v119v3 = typMapMapUint16Int16(v119v1)
- v119v4 = typMapMapUint16Int16(v119v2)
- bs119 = testMarshalErr(v119v3, h, t, "enc-map-v119-custom")
- testUnmarshalErr(v119v4, bs119, h, t, "dec-map-v119-p-len")
- testDeepEqualErr(v119v3, v119v4, t, "equal-map-v119-p-len")
- }
- for _, v := range []map[uint16]int32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v120: %v\n", v)
- var v120v1, v120v2 map[uint16]int32
- v120v1 = v
- bs120 := testMarshalErr(v120v1, h, t, "enc-map-v120")
- if v == nil {
- v120v2 = nil
- } else {
- v120v2 = make(map[uint16]int32, len(v))
- } // reset map
- testUnmarshalErr(v120v2, bs120, h, t, "dec-map-v120")
- testDeepEqualErr(v120v1, v120v2, t, "equal-map-v120")
- if v == nil {
- v120v2 = nil
- } else {
- v120v2 = make(map[uint16]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v120v2), bs120, h, t, "dec-map-v120-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v120v1, v120v2, t, "equal-map-v120-noaddr")
- if v == nil {
- v120v2 = nil
- } else {
- v120v2 = make(map[uint16]int32, len(v))
- } // reset map
- testUnmarshalErr(&v120v2, bs120, h, t, "dec-map-v120-p-len")
- testDeepEqualErr(v120v1, v120v2, t, "equal-map-v120-p-len")
- bs120 = testMarshalErr(&v120v1, h, t, "enc-map-v120-p")
- v120v2 = nil
- testUnmarshalErr(&v120v2, bs120, h, t, "dec-map-v120-p-nil")
- testDeepEqualErr(v120v1, v120v2, t, "equal-map-v120-p-nil")
- // ...
- if v == nil {
- v120v2 = nil
- } else {
- v120v2 = make(map[uint16]int32, len(v))
- } // reset map
- var v120v3, v120v4 typMapMapUint16Int32
- v120v3 = typMapMapUint16Int32(v120v1)
- v120v4 = typMapMapUint16Int32(v120v2)
- bs120 = testMarshalErr(v120v3, h, t, "enc-map-v120-custom")
- testUnmarshalErr(v120v4, bs120, h, t, "dec-map-v120-p-len")
- testDeepEqualErr(v120v3, v120v4, t, "equal-map-v120-p-len")
- }
- for _, v := range []map[uint16]int64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v121: %v\n", v)
- var v121v1, v121v2 map[uint16]int64
- v121v1 = v
- bs121 := testMarshalErr(v121v1, h, t, "enc-map-v121")
- if v == nil {
- v121v2 = nil
- } else {
- v121v2 = make(map[uint16]int64, len(v))
- } // reset map
- testUnmarshalErr(v121v2, bs121, h, t, "dec-map-v121")
- testDeepEqualErr(v121v1, v121v2, t, "equal-map-v121")
- if v == nil {
- v121v2 = nil
- } else {
- v121v2 = make(map[uint16]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v121v2), bs121, h, t, "dec-map-v121-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v121v1, v121v2, t, "equal-map-v121-noaddr")
- if v == nil {
- v121v2 = nil
- } else {
- v121v2 = make(map[uint16]int64, len(v))
- } // reset map
- testUnmarshalErr(&v121v2, bs121, h, t, "dec-map-v121-p-len")
- testDeepEqualErr(v121v1, v121v2, t, "equal-map-v121-p-len")
- bs121 = testMarshalErr(&v121v1, h, t, "enc-map-v121-p")
- v121v2 = nil
- testUnmarshalErr(&v121v2, bs121, h, t, "dec-map-v121-p-nil")
- testDeepEqualErr(v121v1, v121v2, t, "equal-map-v121-p-nil")
- // ...
- if v == nil {
- v121v2 = nil
- } else {
- v121v2 = make(map[uint16]int64, len(v))
- } // reset map
- var v121v3, v121v4 typMapMapUint16Int64
- v121v3 = typMapMapUint16Int64(v121v1)
- v121v4 = typMapMapUint16Int64(v121v2)
- bs121 = testMarshalErr(v121v3, h, t, "enc-map-v121-custom")
- testUnmarshalErr(v121v4, bs121, h, t, "dec-map-v121-p-len")
- testDeepEqualErr(v121v3, v121v4, t, "equal-map-v121-p-len")
- }
- for _, v := range []map[uint16]float32{nil, {}, {33: 0, 44: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v122: %v\n", v)
- var v122v1, v122v2 map[uint16]float32
- v122v1 = v
- bs122 := testMarshalErr(v122v1, h, t, "enc-map-v122")
- if v == nil {
- v122v2 = nil
- } else {
- v122v2 = make(map[uint16]float32, len(v))
- } // reset map
- testUnmarshalErr(v122v2, bs122, h, t, "dec-map-v122")
- testDeepEqualErr(v122v1, v122v2, t, "equal-map-v122")
- if v == nil {
- v122v2 = nil
- } else {
- v122v2 = make(map[uint16]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v122v2), bs122, h, t, "dec-map-v122-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v122v1, v122v2, t, "equal-map-v122-noaddr")
- if v == nil {
- v122v2 = nil
- } else {
- v122v2 = make(map[uint16]float32, len(v))
- } // reset map
- testUnmarshalErr(&v122v2, bs122, h, t, "dec-map-v122-p-len")
- testDeepEqualErr(v122v1, v122v2, t, "equal-map-v122-p-len")
- bs122 = testMarshalErr(&v122v1, h, t, "enc-map-v122-p")
- v122v2 = nil
- testUnmarshalErr(&v122v2, bs122, h, t, "dec-map-v122-p-nil")
- testDeepEqualErr(v122v1, v122v2, t, "equal-map-v122-p-nil")
- // ...
- if v == nil {
- v122v2 = nil
- } else {
- v122v2 = make(map[uint16]float32, len(v))
- } // reset map
- var v122v3, v122v4 typMapMapUint16Float32
- v122v3 = typMapMapUint16Float32(v122v1)
- v122v4 = typMapMapUint16Float32(v122v2)
- bs122 = testMarshalErr(v122v3, h, t, "enc-map-v122-custom")
- testUnmarshalErr(v122v4, bs122, h, t, "dec-map-v122-p-len")
- testDeepEqualErr(v122v3, v122v4, t, "equal-map-v122-p-len")
- }
- for _, v := range []map[uint16]float64{nil, {}, {33: 0, 44: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v123: %v\n", v)
- var v123v1, v123v2 map[uint16]float64
- v123v1 = v
- bs123 := testMarshalErr(v123v1, h, t, "enc-map-v123")
- if v == nil {
- v123v2 = nil
- } else {
- v123v2 = make(map[uint16]float64, len(v))
- } // reset map
- testUnmarshalErr(v123v2, bs123, h, t, "dec-map-v123")
- testDeepEqualErr(v123v1, v123v2, t, "equal-map-v123")
- if v == nil {
- v123v2 = nil
- } else {
- v123v2 = make(map[uint16]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v123v2), bs123, h, t, "dec-map-v123-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v123v1, v123v2, t, "equal-map-v123-noaddr")
- if v == nil {
- v123v2 = nil
- } else {
- v123v2 = make(map[uint16]float64, len(v))
- } // reset map
- testUnmarshalErr(&v123v2, bs123, h, t, "dec-map-v123-p-len")
- testDeepEqualErr(v123v1, v123v2, t, "equal-map-v123-p-len")
- bs123 = testMarshalErr(&v123v1, h, t, "enc-map-v123-p")
- v123v2 = nil
- testUnmarshalErr(&v123v2, bs123, h, t, "dec-map-v123-p-nil")
- testDeepEqualErr(v123v1, v123v2, t, "equal-map-v123-p-nil")
- // ...
- if v == nil {
- v123v2 = nil
- } else {
- v123v2 = make(map[uint16]float64, len(v))
- } // reset map
- var v123v3, v123v4 typMapMapUint16Float64
- v123v3 = typMapMapUint16Float64(v123v1)
- v123v4 = typMapMapUint16Float64(v123v2)
- bs123 = testMarshalErr(v123v3, h, t, "enc-map-v123-custom")
- testUnmarshalErr(v123v4, bs123, h, t, "dec-map-v123-p-len")
- testDeepEqualErr(v123v3, v123v4, t, "equal-map-v123-p-len")
- }
- for _, v := range []map[uint16]bool{nil, {}, {33: false, 44: true}} {
- // fmt.Printf(">>>> running mammoth map v124: %v\n", v)
- var v124v1, v124v2 map[uint16]bool
- v124v1 = v
- bs124 := testMarshalErr(v124v1, h, t, "enc-map-v124")
- if v == nil {
- v124v2 = nil
- } else {
- v124v2 = make(map[uint16]bool, len(v))
- } // reset map
- testUnmarshalErr(v124v2, bs124, h, t, "dec-map-v124")
- testDeepEqualErr(v124v1, v124v2, t, "equal-map-v124")
- if v == nil {
- v124v2 = nil
- } else {
- v124v2 = make(map[uint16]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v124v2), bs124, h, t, "dec-map-v124-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v124v1, v124v2, t, "equal-map-v124-noaddr")
- if v == nil {
- v124v2 = nil
- } else {
- v124v2 = make(map[uint16]bool, len(v))
- } // reset map
- testUnmarshalErr(&v124v2, bs124, h, t, "dec-map-v124-p-len")
- testDeepEqualErr(v124v1, v124v2, t, "equal-map-v124-p-len")
- bs124 = testMarshalErr(&v124v1, h, t, "enc-map-v124-p")
- v124v2 = nil
- testUnmarshalErr(&v124v2, bs124, h, t, "dec-map-v124-p-nil")
- testDeepEqualErr(v124v1, v124v2, t, "equal-map-v124-p-nil")
- // ...
- if v == nil {
- v124v2 = nil
- } else {
- v124v2 = make(map[uint16]bool, len(v))
- } // reset map
- var v124v3, v124v4 typMapMapUint16Bool
- v124v3 = typMapMapUint16Bool(v124v1)
- v124v4 = typMapMapUint16Bool(v124v2)
- bs124 = testMarshalErr(v124v3, h, t, "enc-map-v124-custom")
- testUnmarshalErr(v124v4, bs124, h, t, "dec-map-v124-p-len")
- testDeepEqualErr(v124v3, v124v4, t, "equal-map-v124-p-len")
- }
- for _, v := range []map[uint32]interface{}{nil, {}, {33: nil, 44: "string-is-an-interface"}} {
- // fmt.Printf(">>>> running mammoth map v127: %v\n", v)
- var v127v1, v127v2 map[uint32]interface{}
- v127v1 = v
- bs127 := testMarshalErr(v127v1, h, t, "enc-map-v127")
- if v == nil {
- v127v2 = nil
- } else {
- v127v2 = make(map[uint32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v127v2, bs127, h, t, "dec-map-v127")
- testDeepEqualErr(v127v1, v127v2, t, "equal-map-v127")
- if v == nil {
- v127v2 = nil
- } else {
- v127v2 = make(map[uint32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v127v2), bs127, h, t, "dec-map-v127-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v127v1, v127v2, t, "equal-map-v127-noaddr")
- if v == nil {
- v127v2 = nil
- } else {
- v127v2 = make(map[uint32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v127v2, bs127, h, t, "dec-map-v127-p-len")
- testDeepEqualErr(v127v1, v127v2, t, "equal-map-v127-p-len")
- bs127 = testMarshalErr(&v127v1, h, t, "enc-map-v127-p")
- v127v2 = nil
- testUnmarshalErr(&v127v2, bs127, h, t, "dec-map-v127-p-nil")
- testDeepEqualErr(v127v1, v127v2, t, "equal-map-v127-p-nil")
- // ...
- if v == nil {
- v127v2 = nil
- } else {
- v127v2 = make(map[uint32]interface{}, len(v))
- } // reset map
- var v127v3, v127v4 typMapMapUint32Intf
- v127v3 = typMapMapUint32Intf(v127v1)
- v127v4 = typMapMapUint32Intf(v127v2)
- bs127 = testMarshalErr(v127v3, h, t, "enc-map-v127-custom")
- testUnmarshalErr(v127v4, bs127, h, t, "dec-map-v127-p-len")
- testDeepEqualErr(v127v3, v127v4, t, "equal-map-v127-p-len")
- }
- for _, v := range []map[uint32]string{nil, {}, {33: "", 44: "some-string"}} {
- // fmt.Printf(">>>> running mammoth map v128: %v\n", v)
- var v128v1, v128v2 map[uint32]string
- v128v1 = v
- bs128 := testMarshalErr(v128v1, h, t, "enc-map-v128")
- if v == nil {
- v128v2 = nil
- } else {
- v128v2 = make(map[uint32]string, len(v))
- } // reset map
- testUnmarshalErr(v128v2, bs128, h, t, "dec-map-v128")
- testDeepEqualErr(v128v1, v128v2, t, "equal-map-v128")
- if v == nil {
- v128v2 = nil
- } else {
- v128v2 = make(map[uint32]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v128v2), bs128, h, t, "dec-map-v128-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v128v1, v128v2, t, "equal-map-v128-noaddr")
- if v == nil {
- v128v2 = nil
- } else {
- v128v2 = make(map[uint32]string, len(v))
- } // reset map
- testUnmarshalErr(&v128v2, bs128, h, t, "dec-map-v128-p-len")
- testDeepEqualErr(v128v1, v128v2, t, "equal-map-v128-p-len")
- bs128 = testMarshalErr(&v128v1, h, t, "enc-map-v128-p")
- v128v2 = nil
- testUnmarshalErr(&v128v2, bs128, h, t, "dec-map-v128-p-nil")
- testDeepEqualErr(v128v1, v128v2, t, "equal-map-v128-p-nil")
- // ...
- if v == nil {
- v128v2 = nil
- } else {
- v128v2 = make(map[uint32]string, len(v))
- } // reset map
- var v128v3, v128v4 typMapMapUint32String
- v128v3 = typMapMapUint32String(v128v1)
- v128v4 = typMapMapUint32String(v128v2)
- bs128 = testMarshalErr(v128v3, h, t, "enc-map-v128-custom")
- testUnmarshalErr(v128v4, bs128, h, t, "dec-map-v128-p-len")
- testDeepEqualErr(v128v3, v128v4, t, "equal-map-v128-p-len")
- }
- for _, v := range []map[uint32]uint{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v129: %v\n", v)
- var v129v1, v129v2 map[uint32]uint
- v129v1 = v
- bs129 := testMarshalErr(v129v1, h, t, "enc-map-v129")
- if v == nil {
- v129v2 = nil
- } else {
- v129v2 = make(map[uint32]uint, len(v))
- } // reset map
- testUnmarshalErr(v129v2, bs129, h, t, "dec-map-v129")
- testDeepEqualErr(v129v1, v129v2, t, "equal-map-v129")
- if v == nil {
- v129v2 = nil
- } else {
- v129v2 = make(map[uint32]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v129v2), bs129, h, t, "dec-map-v129-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v129v1, v129v2, t, "equal-map-v129-noaddr")
- if v == nil {
- v129v2 = nil
- } else {
- v129v2 = make(map[uint32]uint, len(v))
- } // reset map
- testUnmarshalErr(&v129v2, bs129, h, t, "dec-map-v129-p-len")
- testDeepEqualErr(v129v1, v129v2, t, "equal-map-v129-p-len")
- bs129 = testMarshalErr(&v129v1, h, t, "enc-map-v129-p")
- v129v2 = nil
- testUnmarshalErr(&v129v2, bs129, h, t, "dec-map-v129-p-nil")
- testDeepEqualErr(v129v1, v129v2, t, "equal-map-v129-p-nil")
- // ...
- if v == nil {
- v129v2 = nil
- } else {
- v129v2 = make(map[uint32]uint, len(v))
- } // reset map
- var v129v3, v129v4 typMapMapUint32Uint
- v129v3 = typMapMapUint32Uint(v129v1)
- v129v4 = typMapMapUint32Uint(v129v2)
- bs129 = testMarshalErr(v129v3, h, t, "enc-map-v129-custom")
- testUnmarshalErr(v129v4, bs129, h, t, "dec-map-v129-p-len")
- testDeepEqualErr(v129v3, v129v4, t, "equal-map-v129-p-len")
- }
- for _, v := range []map[uint32]uint8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v130: %v\n", v)
- var v130v1, v130v2 map[uint32]uint8
- v130v1 = v
- bs130 := testMarshalErr(v130v1, h, t, "enc-map-v130")
- if v == nil {
- v130v2 = nil
- } else {
- v130v2 = make(map[uint32]uint8, len(v))
- } // reset map
- testUnmarshalErr(v130v2, bs130, h, t, "dec-map-v130")
- testDeepEqualErr(v130v1, v130v2, t, "equal-map-v130")
- if v == nil {
- v130v2 = nil
- } else {
- v130v2 = make(map[uint32]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v130v2), bs130, h, t, "dec-map-v130-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v130v1, v130v2, t, "equal-map-v130-noaddr")
- if v == nil {
- v130v2 = nil
- } else {
- v130v2 = make(map[uint32]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v130v2, bs130, h, t, "dec-map-v130-p-len")
- testDeepEqualErr(v130v1, v130v2, t, "equal-map-v130-p-len")
- bs130 = testMarshalErr(&v130v1, h, t, "enc-map-v130-p")
- v130v2 = nil
- testUnmarshalErr(&v130v2, bs130, h, t, "dec-map-v130-p-nil")
- testDeepEqualErr(v130v1, v130v2, t, "equal-map-v130-p-nil")
- // ...
- if v == nil {
- v130v2 = nil
- } else {
- v130v2 = make(map[uint32]uint8, len(v))
- } // reset map
- var v130v3, v130v4 typMapMapUint32Uint8
- v130v3 = typMapMapUint32Uint8(v130v1)
- v130v4 = typMapMapUint32Uint8(v130v2)
- bs130 = testMarshalErr(v130v3, h, t, "enc-map-v130-custom")
- testUnmarshalErr(v130v4, bs130, h, t, "dec-map-v130-p-len")
- testDeepEqualErr(v130v3, v130v4, t, "equal-map-v130-p-len")
- }
- for _, v := range []map[uint32]uint16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v131: %v\n", v)
- var v131v1, v131v2 map[uint32]uint16
- v131v1 = v
- bs131 := testMarshalErr(v131v1, h, t, "enc-map-v131")
- if v == nil {
- v131v2 = nil
- } else {
- v131v2 = make(map[uint32]uint16, len(v))
- } // reset map
- testUnmarshalErr(v131v2, bs131, h, t, "dec-map-v131")
- testDeepEqualErr(v131v1, v131v2, t, "equal-map-v131")
- if v == nil {
- v131v2 = nil
- } else {
- v131v2 = make(map[uint32]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v131v2), bs131, h, t, "dec-map-v131-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v131v1, v131v2, t, "equal-map-v131-noaddr")
- if v == nil {
- v131v2 = nil
- } else {
- v131v2 = make(map[uint32]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v131v2, bs131, h, t, "dec-map-v131-p-len")
- testDeepEqualErr(v131v1, v131v2, t, "equal-map-v131-p-len")
- bs131 = testMarshalErr(&v131v1, h, t, "enc-map-v131-p")
- v131v2 = nil
- testUnmarshalErr(&v131v2, bs131, h, t, "dec-map-v131-p-nil")
- testDeepEqualErr(v131v1, v131v2, t, "equal-map-v131-p-nil")
- // ...
- if v == nil {
- v131v2 = nil
- } else {
- v131v2 = make(map[uint32]uint16, len(v))
- } // reset map
- var v131v3, v131v4 typMapMapUint32Uint16
- v131v3 = typMapMapUint32Uint16(v131v1)
- v131v4 = typMapMapUint32Uint16(v131v2)
- bs131 = testMarshalErr(v131v3, h, t, "enc-map-v131-custom")
- testUnmarshalErr(v131v4, bs131, h, t, "dec-map-v131-p-len")
- testDeepEqualErr(v131v3, v131v4, t, "equal-map-v131-p-len")
- }
- for _, v := range []map[uint32]uint32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v132: %v\n", v)
- var v132v1, v132v2 map[uint32]uint32
- v132v1 = v
- bs132 := testMarshalErr(v132v1, h, t, "enc-map-v132")
- if v == nil {
- v132v2 = nil
- } else {
- v132v2 = make(map[uint32]uint32, len(v))
- } // reset map
- testUnmarshalErr(v132v2, bs132, h, t, "dec-map-v132")
- testDeepEqualErr(v132v1, v132v2, t, "equal-map-v132")
- if v == nil {
- v132v2 = nil
- } else {
- v132v2 = make(map[uint32]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v132v2), bs132, h, t, "dec-map-v132-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v132v1, v132v2, t, "equal-map-v132-noaddr")
- if v == nil {
- v132v2 = nil
- } else {
- v132v2 = make(map[uint32]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v132v2, bs132, h, t, "dec-map-v132-p-len")
- testDeepEqualErr(v132v1, v132v2, t, "equal-map-v132-p-len")
- bs132 = testMarshalErr(&v132v1, h, t, "enc-map-v132-p")
- v132v2 = nil
- testUnmarshalErr(&v132v2, bs132, h, t, "dec-map-v132-p-nil")
- testDeepEqualErr(v132v1, v132v2, t, "equal-map-v132-p-nil")
- // ...
- if v == nil {
- v132v2 = nil
- } else {
- v132v2 = make(map[uint32]uint32, len(v))
- } // reset map
- var v132v3, v132v4 typMapMapUint32Uint32
- v132v3 = typMapMapUint32Uint32(v132v1)
- v132v4 = typMapMapUint32Uint32(v132v2)
- bs132 = testMarshalErr(v132v3, h, t, "enc-map-v132-custom")
- testUnmarshalErr(v132v4, bs132, h, t, "dec-map-v132-p-len")
- testDeepEqualErr(v132v3, v132v4, t, "equal-map-v132-p-len")
- }
- for _, v := range []map[uint32]uint64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v133: %v\n", v)
- var v133v1, v133v2 map[uint32]uint64
- v133v1 = v
- bs133 := testMarshalErr(v133v1, h, t, "enc-map-v133")
- if v == nil {
- v133v2 = nil
- } else {
- v133v2 = make(map[uint32]uint64, len(v))
- } // reset map
- testUnmarshalErr(v133v2, bs133, h, t, "dec-map-v133")
- testDeepEqualErr(v133v1, v133v2, t, "equal-map-v133")
- if v == nil {
- v133v2 = nil
- } else {
- v133v2 = make(map[uint32]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v133v2), bs133, h, t, "dec-map-v133-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v133v1, v133v2, t, "equal-map-v133-noaddr")
- if v == nil {
- v133v2 = nil
- } else {
- v133v2 = make(map[uint32]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v133v2, bs133, h, t, "dec-map-v133-p-len")
- testDeepEqualErr(v133v1, v133v2, t, "equal-map-v133-p-len")
- bs133 = testMarshalErr(&v133v1, h, t, "enc-map-v133-p")
- v133v2 = nil
- testUnmarshalErr(&v133v2, bs133, h, t, "dec-map-v133-p-nil")
- testDeepEqualErr(v133v1, v133v2, t, "equal-map-v133-p-nil")
- // ...
- if v == nil {
- v133v2 = nil
- } else {
- v133v2 = make(map[uint32]uint64, len(v))
- } // reset map
- var v133v3, v133v4 typMapMapUint32Uint64
- v133v3 = typMapMapUint32Uint64(v133v1)
- v133v4 = typMapMapUint32Uint64(v133v2)
- bs133 = testMarshalErr(v133v3, h, t, "enc-map-v133-custom")
- testUnmarshalErr(v133v4, bs133, h, t, "dec-map-v133-p-len")
- testDeepEqualErr(v133v3, v133v4, t, "equal-map-v133-p-len")
- }
- for _, v := range []map[uint32]uintptr{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v134: %v\n", v)
- var v134v1, v134v2 map[uint32]uintptr
- v134v1 = v
- bs134 := testMarshalErr(v134v1, h, t, "enc-map-v134")
- if v == nil {
- v134v2 = nil
- } else {
- v134v2 = make(map[uint32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v134v2, bs134, h, t, "dec-map-v134")
- testDeepEqualErr(v134v1, v134v2, t, "equal-map-v134")
- if v == nil {
- v134v2 = nil
- } else {
- v134v2 = make(map[uint32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v134v2), bs134, h, t, "dec-map-v134-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v134v1, v134v2, t, "equal-map-v134-noaddr")
- if v == nil {
- v134v2 = nil
- } else {
- v134v2 = make(map[uint32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v134v2, bs134, h, t, "dec-map-v134-p-len")
- testDeepEqualErr(v134v1, v134v2, t, "equal-map-v134-p-len")
- bs134 = testMarshalErr(&v134v1, h, t, "enc-map-v134-p")
- v134v2 = nil
- testUnmarshalErr(&v134v2, bs134, h, t, "dec-map-v134-p-nil")
- testDeepEqualErr(v134v1, v134v2, t, "equal-map-v134-p-nil")
- // ...
- if v == nil {
- v134v2 = nil
- } else {
- v134v2 = make(map[uint32]uintptr, len(v))
- } // reset map
- var v134v3, v134v4 typMapMapUint32Uintptr
- v134v3 = typMapMapUint32Uintptr(v134v1)
- v134v4 = typMapMapUint32Uintptr(v134v2)
- bs134 = testMarshalErr(v134v3, h, t, "enc-map-v134-custom")
- testUnmarshalErr(v134v4, bs134, h, t, "dec-map-v134-p-len")
- testDeepEqualErr(v134v3, v134v4, t, "equal-map-v134-p-len")
- }
- for _, v := range []map[uint32]int{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v135: %v\n", v)
- var v135v1, v135v2 map[uint32]int
- v135v1 = v
- bs135 := testMarshalErr(v135v1, h, t, "enc-map-v135")
- if v == nil {
- v135v2 = nil
- } else {
- v135v2 = make(map[uint32]int, len(v))
- } // reset map
- testUnmarshalErr(v135v2, bs135, h, t, "dec-map-v135")
- testDeepEqualErr(v135v1, v135v2, t, "equal-map-v135")
- if v == nil {
- v135v2 = nil
- } else {
- v135v2 = make(map[uint32]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v135v2), bs135, h, t, "dec-map-v135-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v135v1, v135v2, t, "equal-map-v135-noaddr")
- if v == nil {
- v135v2 = nil
- } else {
- v135v2 = make(map[uint32]int, len(v))
- } // reset map
- testUnmarshalErr(&v135v2, bs135, h, t, "dec-map-v135-p-len")
- testDeepEqualErr(v135v1, v135v2, t, "equal-map-v135-p-len")
- bs135 = testMarshalErr(&v135v1, h, t, "enc-map-v135-p")
- v135v2 = nil
- testUnmarshalErr(&v135v2, bs135, h, t, "dec-map-v135-p-nil")
- testDeepEqualErr(v135v1, v135v2, t, "equal-map-v135-p-nil")
- // ...
- if v == nil {
- v135v2 = nil
- } else {
- v135v2 = make(map[uint32]int, len(v))
- } // reset map
- var v135v3, v135v4 typMapMapUint32Int
- v135v3 = typMapMapUint32Int(v135v1)
- v135v4 = typMapMapUint32Int(v135v2)
- bs135 = testMarshalErr(v135v3, h, t, "enc-map-v135-custom")
- testUnmarshalErr(v135v4, bs135, h, t, "dec-map-v135-p-len")
- testDeepEqualErr(v135v3, v135v4, t, "equal-map-v135-p-len")
- }
- for _, v := range []map[uint32]int8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v136: %v\n", v)
- var v136v1, v136v2 map[uint32]int8
- v136v1 = v
- bs136 := testMarshalErr(v136v1, h, t, "enc-map-v136")
- if v == nil {
- v136v2 = nil
- } else {
- v136v2 = make(map[uint32]int8, len(v))
- } // reset map
- testUnmarshalErr(v136v2, bs136, h, t, "dec-map-v136")
- testDeepEqualErr(v136v1, v136v2, t, "equal-map-v136")
- if v == nil {
- v136v2 = nil
- } else {
- v136v2 = make(map[uint32]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v136v2), bs136, h, t, "dec-map-v136-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v136v1, v136v2, t, "equal-map-v136-noaddr")
- if v == nil {
- v136v2 = nil
- } else {
- v136v2 = make(map[uint32]int8, len(v))
- } // reset map
- testUnmarshalErr(&v136v2, bs136, h, t, "dec-map-v136-p-len")
- testDeepEqualErr(v136v1, v136v2, t, "equal-map-v136-p-len")
- bs136 = testMarshalErr(&v136v1, h, t, "enc-map-v136-p")
- v136v2 = nil
- testUnmarshalErr(&v136v2, bs136, h, t, "dec-map-v136-p-nil")
- testDeepEqualErr(v136v1, v136v2, t, "equal-map-v136-p-nil")
- // ...
- if v == nil {
- v136v2 = nil
- } else {
- v136v2 = make(map[uint32]int8, len(v))
- } // reset map
- var v136v3, v136v4 typMapMapUint32Int8
- v136v3 = typMapMapUint32Int8(v136v1)
- v136v4 = typMapMapUint32Int8(v136v2)
- bs136 = testMarshalErr(v136v3, h, t, "enc-map-v136-custom")
- testUnmarshalErr(v136v4, bs136, h, t, "dec-map-v136-p-len")
- testDeepEqualErr(v136v3, v136v4, t, "equal-map-v136-p-len")
- }
- for _, v := range []map[uint32]int16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v137: %v\n", v)
- var v137v1, v137v2 map[uint32]int16
- v137v1 = v
- bs137 := testMarshalErr(v137v1, h, t, "enc-map-v137")
- if v == nil {
- v137v2 = nil
- } else {
- v137v2 = make(map[uint32]int16, len(v))
- } // reset map
- testUnmarshalErr(v137v2, bs137, h, t, "dec-map-v137")
- testDeepEqualErr(v137v1, v137v2, t, "equal-map-v137")
- if v == nil {
- v137v2 = nil
- } else {
- v137v2 = make(map[uint32]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v137v2), bs137, h, t, "dec-map-v137-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v137v1, v137v2, t, "equal-map-v137-noaddr")
- if v == nil {
- v137v2 = nil
- } else {
- v137v2 = make(map[uint32]int16, len(v))
- } // reset map
- testUnmarshalErr(&v137v2, bs137, h, t, "dec-map-v137-p-len")
- testDeepEqualErr(v137v1, v137v2, t, "equal-map-v137-p-len")
- bs137 = testMarshalErr(&v137v1, h, t, "enc-map-v137-p")
- v137v2 = nil
- testUnmarshalErr(&v137v2, bs137, h, t, "dec-map-v137-p-nil")
- testDeepEqualErr(v137v1, v137v2, t, "equal-map-v137-p-nil")
- // ...
- if v == nil {
- v137v2 = nil
- } else {
- v137v2 = make(map[uint32]int16, len(v))
- } // reset map
- var v137v3, v137v4 typMapMapUint32Int16
- v137v3 = typMapMapUint32Int16(v137v1)
- v137v4 = typMapMapUint32Int16(v137v2)
- bs137 = testMarshalErr(v137v3, h, t, "enc-map-v137-custom")
- testUnmarshalErr(v137v4, bs137, h, t, "dec-map-v137-p-len")
- testDeepEqualErr(v137v3, v137v4, t, "equal-map-v137-p-len")
- }
- for _, v := range []map[uint32]int32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v138: %v\n", v)
- var v138v1, v138v2 map[uint32]int32
- v138v1 = v
- bs138 := testMarshalErr(v138v1, h, t, "enc-map-v138")
- if v == nil {
- v138v2 = nil
- } else {
- v138v2 = make(map[uint32]int32, len(v))
- } // reset map
- testUnmarshalErr(v138v2, bs138, h, t, "dec-map-v138")
- testDeepEqualErr(v138v1, v138v2, t, "equal-map-v138")
- if v == nil {
- v138v2 = nil
- } else {
- v138v2 = make(map[uint32]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v138v2), bs138, h, t, "dec-map-v138-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v138v1, v138v2, t, "equal-map-v138-noaddr")
- if v == nil {
- v138v2 = nil
- } else {
- v138v2 = make(map[uint32]int32, len(v))
- } // reset map
- testUnmarshalErr(&v138v2, bs138, h, t, "dec-map-v138-p-len")
- testDeepEqualErr(v138v1, v138v2, t, "equal-map-v138-p-len")
- bs138 = testMarshalErr(&v138v1, h, t, "enc-map-v138-p")
- v138v2 = nil
- testUnmarshalErr(&v138v2, bs138, h, t, "dec-map-v138-p-nil")
- testDeepEqualErr(v138v1, v138v2, t, "equal-map-v138-p-nil")
- // ...
- if v == nil {
- v138v2 = nil
- } else {
- v138v2 = make(map[uint32]int32, len(v))
- } // reset map
- var v138v3, v138v4 typMapMapUint32Int32
- v138v3 = typMapMapUint32Int32(v138v1)
- v138v4 = typMapMapUint32Int32(v138v2)
- bs138 = testMarshalErr(v138v3, h, t, "enc-map-v138-custom")
- testUnmarshalErr(v138v4, bs138, h, t, "dec-map-v138-p-len")
- testDeepEqualErr(v138v3, v138v4, t, "equal-map-v138-p-len")
- }
- for _, v := range []map[uint32]int64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v139: %v\n", v)
- var v139v1, v139v2 map[uint32]int64
- v139v1 = v
- bs139 := testMarshalErr(v139v1, h, t, "enc-map-v139")
- if v == nil {
- v139v2 = nil
- } else {
- v139v2 = make(map[uint32]int64, len(v))
- } // reset map
- testUnmarshalErr(v139v2, bs139, h, t, "dec-map-v139")
- testDeepEqualErr(v139v1, v139v2, t, "equal-map-v139")
- if v == nil {
- v139v2 = nil
- } else {
- v139v2 = make(map[uint32]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v139v2), bs139, h, t, "dec-map-v139-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v139v1, v139v2, t, "equal-map-v139-noaddr")
- if v == nil {
- v139v2 = nil
- } else {
- v139v2 = make(map[uint32]int64, len(v))
- } // reset map
- testUnmarshalErr(&v139v2, bs139, h, t, "dec-map-v139-p-len")
- testDeepEqualErr(v139v1, v139v2, t, "equal-map-v139-p-len")
- bs139 = testMarshalErr(&v139v1, h, t, "enc-map-v139-p")
- v139v2 = nil
- testUnmarshalErr(&v139v2, bs139, h, t, "dec-map-v139-p-nil")
- testDeepEqualErr(v139v1, v139v2, t, "equal-map-v139-p-nil")
- // ...
- if v == nil {
- v139v2 = nil
- } else {
- v139v2 = make(map[uint32]int64, len(v))
- } // reset map
- var v139v3, v139v4 typMapMapUint32Int64
- v139v3 = typMapMapUint32Int64(v139v1)
- v139v4 = typMapMapUint32Int64(v139v2)
- bs139 = testMarshalErr(v139v3, h, t, "enc-map-v139-custom")
- testUnmarshalErr(v139v4, bs139, h, t, "dec-map-v139-p-len")
- testDeepEqualErr(v139v3, v139v4, t, "equal-map-v139-p-len")
- }
- for _, v := range []map[uint32]float32{nil, {}, {44: 0, 33: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v140: %v\n", v)
- var v140v1, v140v2 map[uint32]float32
- v140v1 = v
- bs140 := testMarshalErr(v140v1, h, t, "enc-map-v140")
- if v == nil {
- v140v2 = nil
- } else {
- v140v2 = make(map[uint32]float32, len(v))
- } // reset map
- testUnmarshalErr(v140v2, bs140, h, t, "dec-map-v140")
- testDeepEqualErr(v140v1, v140v2, t, "equal-map-v140")
- if v == nil {
- v140v2 = nil
- } else {
- v140v2 = make(map[uint32]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v140v2), bs140, h, t, "dec-map-v140-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v140v1, v140v2, t, "equal-map-v140-noaddr")
- if v == nil {
- v140v2 = nil
- } else {
- v140v2 = make(map[uint32]float32, len(v))
- } // reset map
- testUnmarshalErr(&v140v2, bs140, h, t, "dec-map-v140-p-len")
- testDeepEqualErr(v140v1, v140v2, t, "equal-map-v140-p-len")
- bs140 = testMarshalErr(&v140v1, h, t, "enc-map-v140-p")
- v140v2 = nil
- testUnmarshalErr(&v140v2, bs140, h, t, "dec-map-v140-p-nil")
- testDeepEqualErr(v140v1, v140v2, t, "equal-map-v140-p-nil")
- // ...
- if v == nil {
- v140v2 = nil
- } else {
- v140v2 = make(map[uint32]float32, len(v))
- } // reset map
- var v140v3, v140v4 typMapMapUint32Float32
- v140v3 = typMapMapUint32Float32(v140v1)
- v140v4 = typMapMapUint32Float32(v140v2)
- bs140 = testMarshalErr(v140v3, h, t, "enc-map-v140-custom")
- testUnmarshalErr(v140v4, bs140, h, t, "dec-map-v140-p-len")
- testDeepEqualErr(v140v3, v140v4, t, "equal-map-v140-p-len")
- }
- for _, v := range []map[uint32]float64{nil, {}, {44: 0, 33: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v141: %v\n", v)
- var v141v1, v141v2 map[uint32]float64
- v141v1 = v
- bs141 := testMarshalErr(v141v1, h, t, "enc-map-v141")
- if v == nil {
- v141v2 = nil
- } else {
- v141v2 = make(map[uint32]float64, len(v))
- } // reset map
- testUnmarshalErr(v141v2, bs141, h, t, "dec-map-v141")
- testDeepEqualErr(v141v1, v141v2, t, "equal-map-v141")
- if v == nil {
- v141v2 = nil
- } else {
- v141v2 = make(map[uint32]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v141v2), bs141, h, t, "dec-map-v141-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v141v1, v141v2, t, "equal-map-v141-noaddr")
- if v == nil {
- v141v2 = nil
- } else {
- v141v2 = make(map[uint32]float64, len(v))
- } // reset map
- testUnmarshalErr(&v141v2, bs141, h, t, "dec-map-v141-p-len")
- testDeepEqualErr(v141v1, v141v2, t, "equal-map-v141-p-len")
- bs141 = testMarshalErr(&v141v1, h, t, "enc-map-v141-p")
- v141v2 = nil
- testUnmarshalErr(&v141v2, bs141, h, t, "dec-map-v141-p-nil")
- testDeepEqualErr(v141v1, v141v2, t, "equal-map-v141-p-nil")
- // ...
- if v == nil {
- v141v2 = nil
- } else {
- v141v2 = make(map[uint32]float64, len(v))
- } // reset map
- var v141v3, v141v4 typMapMapUint32Float64
- v141v3 = typMapMapUint32Float64(v141v1)
- v141v4 = typMapMapUint32Float64(v141v2)
- bs141 = testMarshalErr(v141v3, h, t, "enc-map-v141-custom")
- testUnmarshalErr(v141v4, bs141, h, t, "dec-map-v141-p-len")
- testDeepEqualErr(v141v3, v141v4, t, "equal-map-v141-p-len")
- }
- for _, v := range []map[uint32]bool{nil, {}, {44: false, 33: true}} {
- // fmt.Printf(">>>> running mammoth map v142: %v\n", v)
- var v142v1, v142v2 map[uint32]bool
- v142v1 = v
- bs142 := testMarshalErr(v142v1, h, t, "enc-map-v142")
- if v == nil {
- v142v2 = nil
- } else {
- v142v2 = make(map[uint32]bool, len(v))
- } // reset map
- testUnmarshalErr(v142v2, bs142, h, t, "dec-map-v142")
- testDeepEqualErr(v142v1, v142v2, t, "equal-map-v142")
- if v == nil {
- v142v2 = nil
- } else {
- v142v2 = make(map[uint32]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v142v2), bs142, h, t, "dec-map-v142-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v142v1, v142v2, t, "equal-map-v142-noaddr")
- if v == nil {
- v142v2 = nil
- } else {
- v142v2 = make(map[uint32]bool, len(v))
- } // reset map
- testUnmarshalErr(&v142v2, bs142, h, t, "dec-map-v142-p-len")
- testDeepEqualErr(v142v1, v142v2, t, "equal-map-v142-p-len")
- bs142 = testMarshalErr(&v142v1, h, t, "enc-map-v142-p")
- v142v2 = nil
- testUnmarshalErr(&v142v2, bs142, h, t, "dec-map-v142-p-nil")
- testDeepEqualErr(v142v1, v142v2, t, "equal-map-v142-p-nil")
- // ...
- if v == nil {
- v142v2 = nil
- } else {
- v142v2 = make(map[uint32]bool, len(v))
- } // reset map
- var v142v3, v142v4 typMapMapUint32Bool
- v142v3 = typMapMapUint32Bool(v142v1)
- v142v4 = typMapMapUint32Bool(v142v2)
- bs142 = testMarshalErr(v142v3, h, t, "enc-map-v142-custom")
- testUnmarshalErr(v142v4, bs142, h, t, "dec-map-v142-p-len")
- testDeepEqualErr(v142v3, v142v4, t, "equal-map-v142-p-len")
- }
- for _, v := range []map[uint64]interface{}{nil, {}, {44: nil, 33: "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v145: %v\n", v)
- var v145v1, v145v2 map[uint64]interface{}
- v145v1 = v
- bs145 := testMarshalErr(v145v1, h, t, "enc-map-v145")
- if v == nil {
- v145v2 = nil
- } else {
- v145v2 = make(map[uint64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v145v2, bs145, h, t, "dec-map-v145")
- testDeepEqualErr(v145v1, v145v2, t, "equal-map-v145")
- if v == nil {
- v145v2 = nil
- } else {
- v145v2 = make(map[uint64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v145v2), bs145, h, t, "dec-map-v145-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v145v1, v145v2, t, "equal-map-v145-noaddr")
- if v == nil {
- v145v2 = nil
- } else {
- v145v2 = make(map[uint64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v145v2, bs145, h, t, "dec-map-v145-p-len")
- testDeepEqualErr(v145v1, v145v2, t, "equal-map-v145-p-len")
- bs145 = testMarshalErr(&v145v1, h, t, "enc-map-v145-p")
- v145v2 = nil
- testUnmarshalErr(&v145v2, bs145, h, t, "dec-map-v145-p-nil")
- testDeepEqualErr(v145v1, v145v2, t, "equal-map-v145-p-nil")
- // ...
- if v == nil {
- v145v2 = nil
- } else {
- v145v2 = make(map[uint64]interface{}, len(v))
- } // reset map
- var v145v3, v145v4 typMapMapUint64Intf
- v145v3 = typMapMapUint64Intf(v145v1)
- v145v4 = typMapMapUint64Intf(v145v2)
- bs145 = testMarshalErr(v145v3, h, t, "enc-map-v145-custom")
- testUnmarshalErr(v145v4, bs145, h, t, "dec-map-v145-p-len")
- testDeepEqualErr(v145v3, v145v4, t, "equal-map-v145-p-len")
- }
- for _, v := range []map[uint64]string{nil, {}, {44: "", 33: "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v146: %v\n", v)
- var v146v1, v146v2 map[uint64]string
- v146v1 = v
- bs146 := testMarshalErr(v146v1, h, t, "enc-map-v146")
- if v == nil {
- v146v2 = nil
- } else {
- v146v2 = make(map[uint64]string, len(v))
- } // reset map
- testUnmarshalErr(v146v2, bs146, h, t, "dec-map-v146")
- testDeepEqualErr(v146v1, v146v2, t, "equal-map-v146")
- if v == nil {
- v146v2 = nil
- } else {
- v146v2 = make(map[uint64]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v146v2), bs146, h, t, "dec-map-v146-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v146v1, v146v2, t, "equal-map-v146-noaddr")
- if v == nil {
- v146v2 = nil
- } else {
- v146v2 = make(map[uint64]string, len(v))
- } // reset map
- testUnmarshalErr(&v146v2, bs146, h, t, "dec-map-v146-p-len")
- testDeepEqualErr(v146v1, v146v2, t, "equal-map-v146-p-len")
- bs146 = testMarshalErr(&v146v1, h, t, "enc-map-v146-p")
- v146v2 = nil
- testUnmarshalErr(&v146v2, bs146, h, t, "dec-map-v146-p-nil")
- testDeepEqualErr(v146v1, v146v2, t, "equal-map-v146-p-nil")
- // ...
- if v == nil {
- v146v2 = nil
- } else {
- v146v2 = make(map[uint64]string, len(v))
- } // reset map
- var v146v3, v146v4 typMapMapUint64String
- v146v3 = typMapMapUint64String(v146v1)
- v146v4 = typMapMapUint64String(v146v2)
- bs146 = testMarshalErr(v146v3, h, t, "enc-map-v146-custom")
- testUnmarshalErr(v146v4, bs146, h, t, "dec-map-v146-p-len")
- testDeepEqualErr(v146v3, v146v4, t, "equal-map-v146-p-len")
- }
- for _, v := range []map[uint64]uint{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v147: %v\n", v)
- var v147v1, v147v2 map[uint64]uint
- v147v1 = v
- bs147 := testMarshalErr(v147v1, h, t, "enc-map-v147")
- if v == nil {
- v147v2 = nil
- } else {
- v147v2 = make(map[uint64]uint, len(v))
- } // reset map
- testUnmarshalErr(v147v2, bs147, h, t, "dec-map-v147")
- testDeepEqualErr(v147v1, v147v2, t, "equal-map-v147")
- if v == nil {
- v147v2 = nil
- } else {
- v147v2 = make(map[uint64]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v147v2), bs147, h, t, "dec-map-v147-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v147v1, v147v2, t, "equal-map-v147-noaddr")
- if v == nil {
- v147v2 = nil
- } else {
- v147v2 = make(map[uint64]uint, len(v))
- } // reset map
- testUnmarshalErr(&v147v2, bs147, h, t, "dec-map-v147-p-len")
- testDeepEqualErr(v147v1, v147v2, t, "equal-map-v147-p-len")
- bs147 = testMarshalErr(&v147v1, h, t, "enc-map-v147-p")
- v147v2 = nil
- testUnmarshalErr(&v147v2, bs147, h, t, "dec-map-v147-p-nil")
- testDeepEqualErr(v147v1, v147v2, t, "equal-map-v147-p-nil")
- // ...
- if v == nil {
- v147v2 = nil
- } else {
- v147v2 = make(map[uint64]uint, len(v))
- } // reset map
- var v147v3, v147v4 typMapMapUint64Uint
- v147v3 = typMapMapUint64Uint(v147v1)
- v147v4 = typMapMapUint64Uint(v147v2)
- bs147 = testMarshalErr(v147v3, h, t, "enc-map-v147-custom")
- testUnmarshalErr(v147v4, bs147, h, t, "dec-map-v147-p-len")
- testDeepEqualErr(v147v3, v147v4, t, "equal-map-v147-p-len")
- }
- for _, v := range []map[uint64]uint8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v148: %v\n", v)
- var v148v1, v148v2 map[uint64]uint8
- v148v1 = v
- bs148 := testMarshalErr(v148v1, h, t, "enc-map-v148")
- if v == nil {
- v148v2 = nil
- } else {
- v148v2 = make(map[uint64]uint8, len(v))
- } // reset map
- testUnmarshalErr(v148v2, bs148, h, t, "dec-map-v148")
- testDeepEqualErr(v148v1, v148v2, t, "equal-map-v148")
- if v == nil {
- v148v2 = nil
- } else {
- v148v2 = make(map[uint64]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v148v2), bs148, h, t, "dec-map-v148-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v148v1, v148v2, t, "equal-map-v148-noaddr")
- if v == nil {
- v148v2 = nil
- } else {
- v148v2 = make(map[uint64]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v148v2, bs148, h, t, "dec-map-v148-p-len")
- testDeepEqualErr(v148v1, v148v2, t, "equal-map-v148-p-len")
- bs148 = testMarshalErr(&v148v1, h, t, "enc-map-v148-p")
- v148v2 = nil
- testUnmarshalErr(&v148v2, bs148, h, t, "dec-map-v148-p-nil")
- testDeepEqualErr(v148v1, v148v2, t, "equal-map-v148-p-nil")
- // ...
- if v == nil {
- v148v2 = nil
- } else {
- v148v2 = make(map[uint64]uint8, len(v))
- } // reset map
- var v148v3, v148v4 typMapMapUint64Uint8
- v148v3 = typMapMapUint64Uint8(v148v1)
- v148v4 = typMapMapUint64Uint8(v148v2)
- bs148 = testMarshalErr(v148v3, h, t, "enc-map-v148-custom")
- testUnmarshalErr(v148v4, bs148, h, t, "dec-map-v148-p-len")
- testDeepEqualErr(v148v3, v148v4, t, "equal-map-v148-p-len")
- }
- for _, v := range []map[uint64]uint16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v149: %v\n", v)
- var v149v1, v149v2 map[uint64]uint16
- v149v1 = v
- bs149 := testMarshalErr(v149v1, h, t, "enc-map-v149")
- if v == nil {
- v149v2 = nil
- } else {
- v149v2 = make(map[uint64]uint16, len(v))
- } // reset map
- testUnmarshalErr(v149v2, bs149, h, t, "dec-map-v149")
- testDeepEqualErr(v149v1, v149v2, t, "equal-map-v149")
- if v == nil {
- v149v2 = nil
- } else {
- v149v2 = make(map[uint64]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v149v2), bs149, h, t, "dec-map-v149-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v149v1, v149v2, t, "equal-map-v149-noaddr")
- if v == nil {
- v149v2 = nil
- } else {
- v149v2 = make(map[uint64]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v149v2, bs149, h, t, "dec-map-v149-p-len")
- testDeepEqualErr(v149v1, v149v2, t, "equal-map-v149-p-len")
- bs149 = testMarshalErr(&v149v1, h, t, "enc-map-v149-p")
- v149v2 = nil
- testUnmarshalErr(&v149v2, bs149, h, t, "dec-map-v149-p-nil")
- testDeepEqualErr(v149v1, v149v2, t, "equal-map-v149-p-nil")
- // ...
- if v == nil {
- v149v2 = nil
- } else {
- v149v2 = make(map[uint64]uint16, len(v))
- } // reset map
- var v149v3, v149v4 typMapMapUint64Uint16
- v149v3 = typMapMapUint64Uint16(v149v1)
- v149v4 = typMapMapUint64Uint16(v149v2)
- bs149 = testMarshalErr(v149v3, h, t, "enc-map-v149-custom")
- testUnmarshalErr(v149v4, bs149, h, t, "dec-map-v149-p-len")
- testDeepEqualErr(v149v3, v149v4, t, "equal-map-v149-p-len")
- }
- for _, v := range []map[uint64]uint32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v150: %v\n", v)
- var v150v1, v150v2 map[uint64]uint32
- v150v1 = v
- bs150 := testMarshalErr(v150v1, h, t, "enc-map-v150")
- if v == nil {
- v150v2 = nil
- } else {
- v150v2 = make(map[uint64]uint32, len(v))
- } // reset map
- testUnmarshalErr(v150v2, bs150, h, t, "dec-map-v150")
- testDeepEqualErr(v150v1, v150v2, t, "equal-map-v150")
- if v == nil {
- v150v2 = nil
- } else {
- v150v2 = make(map[uint64]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v150v2), bs150, h, t, "dec-map-v150-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v150v1, v150v2, t, "equal-map-v150-noaddr")
- if v == nil {
- v150v2 = nil
- } else {
- v150v2 = make(map[uint64]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v150v2, bs150, h, t, "dec-map-v150-p-len")
- testDeepEqualErr(v150v1, v150v2, t, "equal-map-v150-p-len")
- bs150 = testMarshalErr(&v150v1, h, t, "enc-map-v150-p")
- v150v2 = nil
- testUnmarshalErr(&v150v2, bs150, h, t, "dec-map-v150-p-nil")
- testDeepEqualErr(v150v1, v150v2, t, "equal-map-v150-p-nil")
- // ...
- if v == nil {
- v150v2 = nil
- } else {
- v150v2 = make(map[uint64]uint32, len(v))
- } // reset map
- var v150v3, v150v4 typMapMapUint64Uint32
- v150v3 = typMapMapUint64Uint32(v150v1)
- v150v4 = typMapMapUint64Uint32(v150v2)
- bs150 = testMarshalErr(v150v3, h, t, "enc-map-v150-custom")
- testUnmarshalErr(v150v4, bs150, h, t, "dec-map-v150-p-len")
- testDeepEqualErr(v150v3, v150v4, t, "equal-map-v150-p-len")
- }
- for _, v := range []map[uint64]uint64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v151: %v\n", v)
- var v151v1, v151v2 map[uint64]uint64
- v151v1 = v
- bs151 := testMarshalErr(v151v1, h, t, "enc-map-v151")
- if v == nil {
- v151v2 = nil
- } else {
- v151v2 = make(map[uint64]uint64, len(v))
- } // reset map
- testUnmarshalErr(v151v2, bs151, h, t, "dec-map-v151")
- testDeepEqualErr(v151v1, v151v2, t, "equal-map-v151")
- if v == nil {
- v151v2 = nil
- } else {
- v151v2 = make(map[uint64]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v151v2), bs151, h, t, "dec-map-v151-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v151v1, v151v2, t, "equal-map-v151-noaddr")
- if v == nil {
- v151v2 = nil
- } else {
- v151v2 = make(map[uint64]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v151v2, bs151, h, t, "dec-map-v151-p-len")
- testDeepEqualErr(v151v1, v151v2, t, "equal-map-v151-p-len")
- bs151 = testMarshalErr(&v151v1, h, t, "enc-map-v151-p")
- v151v2 = nil
- testUnmarshalErr(&v151v2, bs151, h, t, "dec-map-v151-p-nil")
- testDeepEqualErr(v151v1, v151v2, t, "equal-map-v151-p-nil")
- // ...
- if v == nil {
- v151v2 = nil
- } else {
- v151v2 = make(map[uint64]uint64, len(v))
- } // reset map
- var v151v3, v151v4 typMapMapUint64Uint64
- v151v3 = typMapMapUint64Uint64(v151v1)
- v151v4 = typMapMapUint64Uint64(v151v2)
- bs151 = testMarshalErr(v151v3, h, t, "enc-map-v151-custom")
- testUnmarshalErr(v151v4, bs151, h, t, "dec-map-v151-p-len")
- testDeepEqualErr(v151v3, v151v4, t, "equal-map-v151-p-len")
- }
- for _, v := range []map[uint64]uintptr{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v152: %v\n", v)
- var v152v1, v152v2 map[uint64]uintptr
- v152v1 = v
- bs152 := testMarshalErr(v152v1, h, t, "enc-map-v152")
- if v == nil {
- v152v2 = nil
- } else {
- v152v2 = make(map[uint64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v152v2, bs152, h, t, "dec-map-v152")
- testDeepEqualErr(v152v1, v152v2, t, "equal-map-v152")
- if v == nil {
- v152v2 = nil
- } else {
- v152v2 = make(map[uint64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v152v2), bs152, h, t, "dec-map-v152-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v152v1, v152v2, t, "equal-map-v152-noaddr")
- if v == nil {
- v152v2 = nil
- } else {
- v152v2 = make(map[uint64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v152v2, bs152, h, t, "dec-map-v152-p-len")
- testDeepEqualErr(v152v1, v152v2, t, "equal-map-v152-p-len")
- bs152 = testMarshalErr(&v152v1, h, t, "enc-map-v152-p")
- v152v2 = nil
- testUnmarshalErr(&v152v2, bs152, h, t, "dec-map-v152-p-nil")
- testDeepEqualErr(v152v1, v152v2, t, "equal-map-v152-p-nil")
- // ...
- if v == nil {
- v152v2 = nil
- } else {
- v152v2 = make(map[uint64]uintptr, len(v))
- } // reset map
- var v152v3, v152v4 typMapMapUint64Uintptr
- v152v3 = typMapMapUint64Uintptr(v152v1)
- v152v4 = typMapMapUint64Uintptr(v152v2)
- bs152 = testMarshalErr(v152v3, h, t, "enc-map-v152-custom")
- testUnmarshalErr(v152v4, bs152, h, t, "dec-map-v152-p-len")
- testDeepEqualErr(v152v3, v152v4, t, "equal-map-v152-p-len")
- }
- for _, v := range []map[uint64]int{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v153: %v\n", v)
- var v153v1, v153v2 map[uint64]int
- v153v1 = v
- bs153 := testMarshalErr(v153v1, h, t, "enc-map-v153")
- if v == nil {
- v153v2 = nil
- } else {
- v153v2 = make(map[uint64]int, len(v))
- } // reset map
- testUnmarshalErr(v153v2, bs153, h, t, "dec-map-v153")
- testDeepEqualErr(v153v1, v153v2, t, "equal-map-v153")
- if v == nil {
- v153v2 = nil
- } else {
- v153v2 = make(map[uint64]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v153v2), bs153, h, t, "dec-map-v153-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v153v1, v153v2, t, "equal-map-v153-noaddr")
- if v == nil {
- v153v2 = nil
- } else {
- v153v2 = make(map[uint64]int, len(v))
- } // reset map
- testUnmarshalErr(&v153v2, bs153, h, t, "dec-map-v153-p-len")
- testDeepEqualErr(v153v1, v153v2, t, "equal-map-v153-p-len")
- bs153 = testMarshalErr(&v153v1, h, t, "enc-map-v153-p")
- v153v2 = nil
- testUnmarshalErr(&v153v2, bs153, h, t, "dec-map-v153-p-nil")
- testDeepEqualErr(v153v1, v153v2, t, "equal-map-v153-p-nil")
- // ...
- if v == nil {
- v153v2 = nil
- } else {
- v153v2 = make(map[uint64]int, len(v))
- } // reset map
- var v153v3, v153v4 typMapMapUint64Int
- v153v3 = typMapMapUint64Int(v153v1)
- v153v4 = typMapMapUint64Int(v153v2)
- bs153 = testMarshalErr(v153v3, h, t, "enc-map-v153-custom")
- testUnmarshalErr(v153v4, bs153, h, t, "dec-map-v153-p-len")
- testDeepEqualErr(v153v3, v153v4, t, "equal-map-v153-p-len")
- }
- for _, v := range []map[uint64]int8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v154: %v\n", v)
- var v154v1, v154v2 map[uint64]int8
- v154v1 = v
- bs154 := testMarshalErr(v154v1, h, t, "enc-map-v154")
- if v == nil {
- v154v2 = nil
- } else {
- v154v2 = make(map[uint64]int8, len(v))
- } // reset map
- testUnmarshalErr(v154v2, bs154, h, t, "dec-map-v154")
- testDeepEqualErr(v154v1, v154v2, t, "equal-map-v154")
- if v == nil {
- v154v2 = nil
- } else {
- v154v2 = make(map[uint64]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v154v2), bs154, h, t, "dec-map-v154-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v154v1, v154v2, t, "equal-map-v154-noaddr")
- if v == nil {
- v154v2 = nil
- } else {
- v154v2 = make(map[uint64]int8, len(v))
- } // reset map
- testUnmarshalErr(&v154v2, bs154, h, t, "dec-map-v154-p-len")
- testDeepEqualErr(v154v1, v154v2, t, "equal-map-v154-p-len")
- bs154 = testMarshalErr(&v154v1, h, t, "enc-map-v154-p")
- v154v2 = nil
- testUnmarshalErr(&v154v2, bs154, h, t, "dec-map-v154-p-nil")
- testDeepEqualErr(v154v1, v154v2, t, "equal-map-v154-p-nil")
- // ...
- if v == nil {
- v154v2 = nil
- } else {
- v154v2 = make(map[uint64]int8, len(v))
- } // reset map
- var v154v3, v154v4 typMapMapUint64Int8
- v154v3 = typMapMapUint64Int8(v154v1)
- v154v4 = typMapMapUint64Int8(v154v2)
- bs154 = testMarshalErr(v154v3, h, t, "enc-map-v154-custom")
- testUnmarshalErr(v154v4, bs154, h, t, "dec-map-v154-p-len")
- testDeepEqualErr(v154v3, v154v4, t, "equal-map-v154-p-len")
- }
- for _, v := range []map[uint64]int16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v155: %v\n", v)
- var v155v1, v155v2 map[uint64]int16
- v155v1 = v
- bs155 := testMarshalErr(v155v1, h, t, "enc-map-v155")
- if v == nil {
- v155v2 = nil
- } else {
- v155v2 = make(map[uint64]int16, len(v))
- } // reset map
- testUnmarshalErr(v155v2, bs155, h, t, "dec-map-v155")
- testDeepEqualErr(v155v1, v155v2, t, "equal-map-v155")
- if v == nil {
- v155v2 = nil
- } else {
- v155v2 = make(map[uint64]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v155v2), bs155, h, t, "dec-map-v155-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v155v1, v155v2, t, "equal-map-v155-noaddr")
- if v == nil {
- v155v2 = nil
- } else {
- v155v2 = make(map[uint64]int16, len(v))
- } // reset map
- testUnmarshalErr(&v155v2, bs155, h, t, "dec-map-v155-p-len")
- testDeepEqualErr(v155v1, v155v2, t, "equal-map-v155-p-len")
- bs155 = testMarshalErr(&v155v1, h, t, "enc-map-v155-p")
- v155v2 = nil
- testUnmarshalErr(&v155v2, bs155, h, t, "dec-map-v155-p-nil")
- testDeepEqualErr(v155v1, v155v2, t, "equal-map-v155-p-nil")
- // ...
- if v == nil {
- v155v2 = nil
- } else {
- v155v2 = make(map[uint64]int16, len(v))
- } // reset map
- var v155v3, v155v4 typMapMapUint64Int16
- v155v3 = typMapMapUint64Int16(v155v1)
- v155v4 = typMapMapUint64Int16(v155v2)
- bs155 = testMarshalErr(v155v3, h, t, "enc-map-v155-custom")
- testUnmarshalErr(v155v4, bs155, h, t, "dec-map-v155-p-len")
- testDeepEqualErr(v155v3, v155v4, t, "equal-map-v155-p-len")
- }
- for _, v := range []map[uint64]int32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v156: %v\n", v)
- var v156v1, v156v2 map[uint64]int32
- v156v1 = v
- bs156 := testMarshalErr(v156v1, h, t, "enc-map-v156")
- if v == nil {
- v156v2 = nil
- } else {
- v156v2 = make(map[uint64]int32, len(v))
- } // reset map
- testUnmarshalErr(v156v2, bs156, h, t, "dec-map-v156")
- testDeepEqualErr(v156v1, v156v2, t, "equal-map-v156")
- if v == nil {
- v156v2 = nil
- } else {
- v156v2 = make(map[uint64]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v156v2), bs156, h, t, "dec-map-v156-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v156v1, v156v2, t, "equal-map-v156-noaddr")
- if v == nil {
- v156v2 = nil
- } else {
- v156v2 = make(map[uint64]int32, len(v))
- } // reset map
- testUnmarshalErr(&v156v2, bs156, h, t, "dec-map-v156-p-len")
- testDeepEqualErr(v156v1, v156v2, t, "equal-map-v156-p-len")
- bs156 = testMarshalErr(&v156v1, h, t, "enc-map-v156-p")
- v156v2 = nil
- testUnmarshalErr(&v156v2, bs156, h, t, "dec-map-v156-p-nil")
- testDeepEqualErr(v156v1, v156v2, t, "equal-map-v156-p-nil")
- // ...
- if v == nil {
- v156v2 = nil
- } else {
- v156v2 = make(map[uint64]int32, len(v))
- } // reset map
- var v156v3, v156v4 typMapMapUint64Int32
- v156v3 = typMapMapUint64Int32(v156v1)
- v156v4 = typMapMapUint64Int32(v156v2)
- bs156 = testMarshalErr(v156v3, h, t, "enc-map-v156-custom")
- testUnmarshalErr(v156v4, bs156, h, t, "dec-map-v156-p-len")
- testDeepEqualErr(v156v3, v156v4, t, "equal-map-v156-p-len")
- }
- for _, v := range []map[uint64]int64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v157: %v\n", v)
- var v157v1, v157v2 map[uint64]int64
- v157v1 = v
- bs157 := testMarshalErr(v157v1, h, t, "enc-map-v157")
- if v == nil {
- v157v2 = nil
- } else {
- v157v2 = make(map[uint64]int64, len(v))
- } // reset map
- testUnmarshalErr(v157v2, bs157, h, t, "dec-map-v157")
- testDeepEqualErr(v157v1, v157v2, t, "equal-map-v157")
- if v == nil {
- v157v2 = nil
- } else {
- v157v2 = make(map[uint64]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v157v2), bs157, h, t, "dec-map-v157-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v157v1, v157v2, t, "equal-map-v157-noaddr")
- if v == nil {
- v157v2 = nil
- } else {
- v157v2 = make(map[uint64]int64, len(v))
- } // reset map
- testUnmarshalErr(&v157v2, bs157, h, t, "dec-map-v157-p-len")
- testDeepEqualErr(v157v1, v157v2, t, "equal-map-v157-p-len")
- bs157 = testMarshalErr(&v157v1, h, t, "enc-map-v157-p")
- v157v2 = nil
- testUnmarshalErr(&v157v2, bs157, h, t, "dec-map-v157-p-nil")
- testDeepEqualErr(v157v1, v157v2, t, "equal-map-v157-p-nil")
- // ...
- if v == nil {
- v157v2 = nil
- } else {
- v157v2 = make(map[uint64]int64, len(v))
- } // reset map
- var v157v3, v157v4 typMapMapUint64Int64
- v157v3 = typMapMapUint64Int64(v157v1)
- v157v4 = typMapMapUint64Int64(v157v2)
- bs157 = testMarshalErr(v157v3, h, t, "enc-map-v157-custom")
- testUnmarshalErr(v157v4, bs157, h, t, "dec-map-v157-p-len")
- testDeepEqualErr(v157v3, v157v4, t, "equal-map-v157-p-len")
- }
- for _, v := range []map[uint64]float32{nil, {}, {33: 0, 44: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v158: %v\n", v)
- var v158v1, v158v2 map[uint64]float32
- v158v1 = v
- bs158 := testMarshalErr(v158v1, h, t, "enc-map-v158")
- if v == nil {
- v158v2 = nil
- } else {
- v158v2 = make(map[uint64]float32, len(v))
- } // reset map
- testUnmarshalErr(v158v2, bs158, h, t, "dec-map-v158")
- testDeepEqualErr(v158v1, v158v2, t, "equal-map-v158")
- if v == nil {
- v158v2 = nil
- } else {
- v158v2 = make(map[uint64]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v158v2), bs158, h, t, "dec-map-v158-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v158v1, v158v2, t, "equal-map-v158-noaddr")
- if v == nil {
- v158v2 = nil
- } else {
- v158v2 = make(map[uint64]float32, len(v))
- } // reset map
- testUnmarshalErr(&v158v2, bs158, h, t, "dec-map-v158-p-len")
- testDeepEqualErr(v158v1, v158v2, t, "equal-map-v158-p-len")
- bs158 = testMarshalErr(&v158v1, h, t, "enc-map-v158-p")
- v158v2 = nil
- testUnmarshalErr(&v158v2, bs158, h, t, "dec-map-v158-p-nil")
- testDeepEqualErr(v158v1, v158v2, t, "equal-map-v158-p-nil")
- // ...
- if v == nil {
- v158v2 = nil
- } else {
- v158v2 = make(map[uint64]float32, len(v))
- } // reset map
- var v158v3, v158v4 typMapMapUint64Float32
- v158v3 = typMapMapUint64Float32(v158v1)
- v158v4 = typMapMapUint64Float32(v158v2)
- bs158 = testMarshalErr(v158v3, h, t, "enc-map-v158-custom")
- testUnmarshalErr(v158v4, bs158, h, t, "dec-map-v158-p-len")
- testDeepEqualErr(v158v3, v158v4, t, "equal-map-v158-p-len")
- }
- for _, v := range []map[uint64]float64{nil, {}, {33: 0, 44: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v159: %v\n", v)
- var v159v1, v159v2 map[uint64]float64
- v159v1 = v
- bs159 := testMarshalErr(v159v1, h, t, "enc-map-v159")
- if v == nil {
- v159v2 = nil
- } else {
- v159v2 = make(map[uint64]float64, len(v))
- } // reset map
- testUnmarshalErr(v159v2, bs159, h, t, "dec-map-v159")
- testDeepEqualErr(v159v1, v159v2, t, "equal-map-v159")
- if v == nil {
- v159v2 = nil
- } else {
- v159v2 = make(map[uint64]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v159v2), bs159, h, t, "dec-map-v159-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v159v1, v159v2, t, "equal-map-v159-noaddr")
- if v == nil {
- v159v2 = nil
- } else {
- v159v2 = make(map[uint64]float64, len(v))
- } // reset map
- testUnmarshalErr(&v159v2, bs159, h, t, "dec-map-v159-p-len")
- testDeepEqualErr(v159v1, v159v2, t, "equal-map-v159-p-len")
- bs159 = testMarshalErr(&v159v1, h, t, "enc-map-v159-p")
- v159v2 = nil
- testUnmarshalErr(&v159v2, bs159, h, t, "dec-map-v159-p-nil")
- testDeepEqualErr(v159v1, v159v2, t, "equal-map-v159-p-nil")
- // ...
- if v == nil {
- v159v2 = nil
- } else {
- v159v2 = make(map[uint64]float64, len(v))
- } // reset map
- var v159v3, v159v4 typMapMapUint64Float64
- v159v3 = typMapMapUint64Float64(v159v1)
- v159v4 = typMapMapUint64Float64(v159v2)
- bs159 = testMarshalErr(v159v3, h, t, "enc-map-v159-custom")
- testUnmarshalErr(v159v4, bs159, h, t, "dec-map-v159-p-len")
- testDeepEqualErr(v159v3, v159v4, t, "equal-map-v159-p-len")
- }
- for _, v := range []map[uint64]bool{nil, {}, {33: false, 44: true}} {
- // fmt.Printf(">>>> running mammoth map v160: %v\n", v)
- var v160v1, v160v2 map[uint64]bool
- v160v1 = v
- bs160 := testMarshalErr(v160v1, h, t, "enc-map-v160")
- if v == nil {
- v160v2 = nil
- } else {
- v160v2 = make(map[uint64]bool, len(v))
- } // reset map
- testUnmarshalErr(v160v2, bs160, h, t, "dec-map-v160")
- testDeepEqualErr(v160v1, v160v2, t, "equal-map-v160")
- if v == nil {
- v160v2 = nil
- } else {
- v160v2 = make(map[uint64]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v160v2), bs160, h, t, "dec-map-v160-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v160v1, v160v2, t, "equal-map-v160-noaddr")
- if v == nil {
- v160v2 = nil
- } else {
- v160v2 = make(map[uint64]bool, len(v))
- } // reset map
- testUnmarshalErr(&v160v2, bs160, h, t, "dec-map-v160-p-len")
- testDeepEqualErr(v160v1, v160v2, t, "equal-map-v160-p-len")
- bs160 = testMarshalErr(&v160v1, h, t, "enc-map-v160-p")
- v160v2 = nil
- testUnmarshalErr(&v160v2, bs160, h, t, "dec-map-v160-p-nil")
- testDeepEqualErr(v160v1, v160v2, t, "equal-map-v160-p-nil")
- // ...
- if v == nil {
- v160v2 = nil
- } else {
- v160v2 = make(map[uint64]bool, len(v))
- } // reset map
- var v160v3, v160v4 typMapMapUint64Bool
- v160v3 = typMapMapUint64Bool(v160v1)
- v160v4 = typMapMapUint64Bool(v160v2)
- bs160 = testMarshalErr(v160v3, h, t, "enc-map-v160-custom")
- testUnmarshalErr(v160v4, bs160, h, t, "dec-map-v160-p-len")
- testDeepEqualErr(v160v3, v160v4, t, "equal-map-v160-p-len")
- }
- for _, v := range []map[uintptr]interface{}{nil, {}, {33: nil, 44: "string-is-an-interface"}} {
- // fmt.Printf(">>>> running mammoth map v163: %v\n", v)
- var v163v1, v163v2 map[uintptr]interface{}
- v163v1 = v
- bs163 := testMarshalErr(v163v1, h, t, "enc-map-v163")
- if v == nil {
- v163v2 = nil
- } else {
- v163v2 = make(map[uintptr]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v163v2, bs163, h, t, "dec-map-v163")
- testDeepEqualErr(v163v1, v163v2, t, "equal-map-v163")
- if v == nil {
- v163v2 = nil
- } else {
- v163v2 = make(map[uintptr]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v163v2), bs163, h, t, "dec-map-v163-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v163v1, v163v2, t, "equal-map-v163-noaddr")
- if v == nil {
- v163v2 = nil
- } else {
- v163v2 = make(map[uintptr]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v163v2, bs163, h, t, "dec-map-v163-p-len")
- testDeepEqualErr(v163v1, v163v2, t, "equal-map-v163-p-len")
- bs163 = testMarshalErr(&v163v1, h, t, "enc-map-v163-p")
- v163v2 = nil
- testUnmarshalErr(&v163v2, bs163, h, t, "dec-map-v163-p-nil")
- testDeepEqualErr(v163v1, v163v2, t, "equal-map-v163-p-nil")
- // ...
- if v == nil {
- v163v2 = nil
- } else {
- v163v2 = make(map[uintptr]interface{}, len(v))
- } // reset map
- var v163v3, v163v4 typMapMapUintptrIntf
- v163v3 = typMapMapUintptrIntf(v163v1)
- v163v4 = typMapMapUintptrIntf(v163v2)
- bs163 = testMarshalErr(v163v3, h, t, "enc-map-v163-custom")
- testUnmarshalErr(v163v4, bs163, h, t, "dec-map-v163-p-len")
- testDeepEqualErr(v163v3, v163v4, t, "equal-map-v163-p-len")
- }
- for _, v := range []map[uintptr]string{nil, {}, {33: "", 44: "some-string"}} {
- // fmt.Printf(">>>> running mammoth map v164: %v\n", v)
- var v164v1, v164v2 map[uintptr]string
- v164v1 = v
- bs164 := testMarshalErr(v164v1, h, t, "enc-map-v164")
- if v == nil {
- v164v2 = nil
- } else {
- v164v2 = make(map[uintptr]string, len(v))
- } // reset map
- testUnmarshalErr(v164v2, bs164, h, t, "dec-map-v164")
- testDeepEqualErr(v164v1, v164v2, t, "equal-map-v164")
- if v == nil {
- v164v2 = nil
- } else {
- v164v2 = make(map[uintptr]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v164v2), bs164, h, t, "dec-map-v164-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v164v1, v164v2, t, "equal-map-v164-noaddr")
- if v == nil {
- v164v2 = nil
- } else {
- v164v2 = make(map[uintptr]string, len(v))
- } // reset map
- testUnmarshalErr(&v164v2, bs164, h, t, "dec-map-v164-p-len")
- testDeepEqualErr(v164v1, v164v2, t, "equal-map-v164-p-len")
- bs164 = testMarshalErr(&v164v1, h, t, "enc-map-v164-p")
- v164v2 = nil
- testUnmarshalErr(&v164v2, bs164, h, t, "dec-map-v164-p-nil")
- testDeepEqualErr(v164v1, v164v2, t, "equal-map-v164-p-nil")
- // ...
- if v == nil {
- v164v2 = nil
- } else {
- v164v2 = make(map[uintptr]string, len(v))
- } // reset map
- var v164v3, v164v4 typMapMapUintptrString
- v164v3 = typMapMapUintptrString(v164v1)
- v164v4 = typMapMapUintptrString(v164v2)
- bs164 = testMarshalErr(v164v3, h, t, "enc-map-v164-custom")
- testUnmarshalErr(v164v4, bs164, h, t, "dec-map-v164-p-len")
- testDeepEqualErr(v164v3, v164v4, t, "equal-map-v164-p-len")
- }
- for _, v := range []map[uintptr]uint{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v165: %v\n", v)
- var v165v1, v165v2 map[uintptr]uint
- v165v1 = v
- bs165 := testMarshalErr(v165v1, h, t, "enc-map-v165")
- if v == nil {
- v165v2 = nil
- } else {
- v165v2 = make(map[uintptr]uint, len(v))
- } // reset map
- testUnmarshalErr(v165v2, bs165, h, t, "dec-map-v165")
- testDeepEqualErr(v165v1, v165v2, t, "equal-map-v165")
- if v == nil {
- v165v2 = nil
- } else {
- v165v2 = make(map[uintptr]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v165v2), bs165, h, t, "dec-map-v165-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v165v1, v165v2, t, "equal-map-v165-noaddr")
- if v == nil {
- v165v2 = nil
- } else {
- v165v2 = make(map[uintptr]uint, len(v))
- } // reset map
- testUnmarshalErr(&v165v2, bs165, h, t, "dec-map-v165-p-len")
- testDeepEqualErr(v165v1, v165v2, t, "equal-map-v165-p-len")
- bs165 = testMarshalErr(&v165v1, h, t, "enc-map-v165-p")
- v165v2 = nil
- testUnmarshalErr(&v165v2, bs165, h, t, "dec-map-v165-p-nil")
- testDeepEqualErr(v165v1, v165v2, t, "equal-map-v165-p-nil")
- // ...
- if v == nil {
- v165v2 = nil
- } else {
- v165v2 = make(map[uintptr]uint, len(v))
- } // reset map
- var v165v3, v165v4 typMapMapUintptrUint
- v165v3 = typMapMapUintptrUint(v165v1)
- v165v4 = typMapMapUintptrUint(v165v2)
- bs165 = testMarshalErr(v165v3, h, t, "enc-map-v165-custom")
- testUnmarshalErr(v165v4, bs165, h, t, "dec-map-v165-p-len")
- testDeepEqualErr(v165v3, v165v4, t, "equal-map-v165-p-len")
- }
- for _, v := range []map[uintptr]uint8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v166: %v\n", v)
- var v166v1, v166v2 map[uintptr]uint8
- v166v1 = v
- bs166 := testMarshalErr(v166v1, h, t, "enc-map-v166")
- if v == nil {
- v166v2 = nil
- } else {
- v166v2 = make(map[uintptr]uint8, len(v))
- } // reset map
- testUnmarshalErr(v166v2, bs166, h, t, "dec-map-v166")
- testDeepEqualErr(v166v1, v166v2, t, "equal-map-v166")
- if v == nil {
- v166v2 = nil
- } else {
- v166v2 = make(map[uintptr]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v166v2), bs166, h, t, "dec-map-v166-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v166v1, v166v2, t, "equal-map-v166-noaddr")
- if v == nil {
- v166v2 = nil
- } else {
- v166v2 = make(map[uintptr]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v166v2, bs166, h, t, "dec-map-v166-p-len")
- testDeepEqualErr(v166v1, v166v2, t, "equal-map-v166-p-len")
- bs166 = testMarshalErr(&v166v1, h, t, "enc-map-v166-p")
- v166v2 = nil
- testUnmarshalErr(&v166v2, bs166, h, t, "dec-map-v166-p-nil")
- testDeepEqualErr(v166v1, v166v2, t, "equal-map-v166-p-nil")
- // ...
- if v == nil {
- v166v2 = nil
- } else {
- v166v2 = make(map[uintptr]uint8, len(v))
- } // reset map
- var v166v3, v166v4 typMapMapUintptrUint8
- v166v3 = typMapMapUintptrUint8(v166v1)
- v166v4 = typMapMapUintptrUint8(v166v2)
- bs166 = testMarshalErr(v166v3, h, t, "enc-map-v166-custom")
- testUnmarshalErr(v166v4, bs166, h, t, "dec-map-v166-p-len")
- testDeepEqualErr(v166v3, v166v4, t, "equal-map-v166-p-len")
- }
- for _, v := range []map[uintptr]uint16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v167: %v\n", v)
- var v167v1, v167v2 map[uintptr]uint16
- v167v1 = v
- bs167 := testMarshalErr(v167v1, h, t, "enc-map-v167")
- if v == nil {
- v167v2 = nil
- } else {
- v167v2 = make(map[uintptr]uint16, len(v))
- } // reset map
- testUnmarshalErr(v167v2, bs167, h, t, "dec-map-v167")
- testDeepEqualErr(v167v1, v167v2, t, "equal-map-v167")
- if v == nil {
- v167v2 = nil
- } else {
- v167v2 = make(map[uintptr]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v167v2), bs167, h, t, "dec-map-v167-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v167v1, v167v2, t, "equal-map-v167-noaddr")
- if v == nil {
- v167v2 = nil
- } else {
- v167v2 = make(map[uintptr]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v167v2, bs167, h, t, "dec-map-v167-p-len")
- testDeepEqualErr(v167v1, v167v2, t, "equal-map-v167-p-len")
- bs167 = testMarshalErr(&v167v1, h, t, "enc-map-v167-p")
- v167v2 = nil
- testUnmarshalErr(&v167v2, bs167, h, t, "dec-map-v167-p-nil")
- testDeepEqualErr(v167v1, v167v2, t, "equal-map-v167-p-nil")
- // ...
- if v == nil {
- v167v2 = nil
- } else {
- v167v2 = make(map[uintptr]uint16, len(v))
- } // reset map
- var v167v3, v167v4 typMapMapUintptrUint16
- v167v3 = typMapMapUintptrUint16(v167v1)
- v167v4 = typMapMapUintptrUint16(v167v2)
- bs167 = testMarshalErr(v167v3, h, t, "enc-map-v167-custom")
- testUnmarshalErr(v167v4, bs167, h, t, "dec-map-v167-p-len")
- testDeepEqualErr(v167v3, v167v4, t, "equal-map-v167-p-len")
- }
- for _, v := range []map[uintptr]uint32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v168: %v\n", v)
- var v168v1, v168v2 map[uintptr]uint32
- v168v1 = v
- bs168 := testMarshalErr(v168v1, h, t, "enc-map-v168")
- if v == nil {
- v168v2 = nil
- } else {
- v168v2 = make(map[uintptr]uint32, len(v))
- } // reset map
- testUnmarshalErr(v168v2, bs168, h, t, "dec-map-v168")
- testDeepEqualErr(v168v1, v168v2, t, "equal-map-v168")
- if v == nil {
- v168v2 = nil
- } else {
- v168v2 = make(map[uintptr]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v168v2), bs168, h, t, "dec-map-v168-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v168v1, v168v2, t, "equal-map-v168-noaddr")
- if v == nil {
- v168v2 = nil
- } else {
- v168v2 = make(map[uintptr]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v168v2, bs168, h, t, "dec-map-v168-p-len")
- testDeepEqualErr(v168v1, v168v2, t, "equal-map-v168-p-len")
- bs168 = testMarshalErr(&v168v1, h, t, "enc-map-v168-p")
- v168v2 = nil
- testUnmarshalErr(&v168v2, bs168, h, t, "dec-map-v168-p-nil")
- testDeepEqualErr(v168v1, v168v2, t, "equal-map-v168-p-nil")
- // ...
- if v == nil {
- v168v2 = nil
- } else {
- v168v2 = make(map[uintptr]uint32, len(v))
- } // reset map
- var v168v3, v168v4 typMapMapUintptrUint32
- v168v3 = typMapMapUintptrUint32(v168v1)
- v168v4 = typMapMapUintptrUint32(v168v2)
- bs168 = testMarshalErr(v168v3, h, t, "enc-map-v168-custom")
- testUnmarshalErr(v168v4, bs168, h, t, "dec-map-v168-p-len")
- testDeepEqualErr(v168v3, v168v4, t, "equal-map-v168-p-len")
- }
- for _, v := range []map[uintptr]uint64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v169: %v\n", v)
- var v169v1, v169v2 map[uintptr]uint64
- v169v1 = v
- bs169 := testMarshalErr(v169v1, h, t, "enc-map-v169")
- if v == nil {
- v169v2 = nil
- } else {
- v169v2 = make(map[uintptr]uint64, len(v))
- } // reset map
- testUnmarshalErr(v169v2, bs169, h, t, "dec-map-v169")
- testDeepEqualErr(v169v1, v169v2, t, "equal-map-v169")
- if v == nil {
- v169v2 = nil
- } else {
- v169v2 = make(map[uintptr]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v169v2), bs169, h, t, "dec-map-v169-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v169v1, v169v2, t, "equal-map-v169-noaddr")
- if v == nil {
- v169v2 = nil
- } else {
- v169v2 = make(map[uintptr]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v169v2, bs169, h, t, "dec-map-v169-p-len")
- testDeepEqualErr(v169v1, v169v2, t, "equal-map-v169-p-len")
- bs169 = testMarshalErr(&v169v1, h, t, "enc-map-v169-p")
- v169v2 = nil
- testUnmarshalErr(&v169v2, bs169, h, t, "dec-map-v169-p-nil")
- testDeepEqualErr(v169v1, v169v2, t, "equal-map-v169-p-nil")
- // ...
- if v == nil {
- v169v2 = nil
- } else {
- v169v2 = make(map[uintptr]uint64, len(v))
- } // reset map
- var v169v3, v169v4 typMapMapUintptrUint64
- v169v3 = typMapMapUintptrUint64(v169v1)
- v169v4 = typMapMapUintptrUint64(v169v2)
- bs169 = testMarshalErr(v169v3, h, t, "enc-map-v169-custom")
- testUnmarshalErr(v169v4, bs169, h, t, "dec-map-v169-p-len")
- testDeepEqualErr(v169v3, v169v4, t, "equal-map-v169-p-len")
- }
- for _, v := range []map[uintptr]uintptr{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v170: %v\n", v)
- var v170v1, v170v2 map[uintptr]uintptr
- v170v1 = v
- bs170 := testMarshalErr(v170v1, h, t, "enc-map-v170")
- if v == nil {
- v170v2 = nil
- } else {
- v170v2 = make(map[uintptr]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v170v2, bs170, h, t, "dec-map-v170")
- testDeepEqualErr(v170v1, v170v2, t, "equal-map-v170")
- if v == nil {
- v170v2 = nil
- } else {
- v170v2 = make(map[uintptr]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v170v2), bs170, h, t, "dec-map-v170-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v170v1, v170v2, t, "equal-map-v170-noaddr")
- if v == nil {
- v170v2 = nil
- } else {
- v170v2 = make(map[uintptr]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v170v2, bs170, h, t, "dec-map-v170-p-len")
- testDeepEqualErr(v170v1, v170v2, t, "equal-map-v170-p-len")
- bs170 = testMarshalErr(&v170v1, h, t, "enc-map-v170-p")
- v170v2 = nil
- testUnmarshalErr(&v170v2, bs170, h, t, "dec-map-v170-p-nil")
- testDeepEqualErr(v170v1, v170v2, t, "equal-map-v170-p-nil")
- // ...
- if v == nil {
- v170v2 = nil
- } else {
- v170v2 = make(map[uintptr]uintptr, len(v))
- } // reset map
- var v170v3, v170v4 typMapMapUintptrUintptr
- v170v3 = typMapMapUintptrUintptr(v170v1)
- v170v4 = typMapMapUintptrUintptr(v170v2)
- bs170 = testMarshalErr(v170v3, h, t, "enc-map-v170-custom")
- testUnmarshalErr(v170v4, bs170, h, t, "dec-map-v170-p-len")
- testDeepEqualErr(v170v3, v170v4, t, "equal-map-v170-p-len")
- }
- for _, v := range []map[uintptr]int{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v171: %v\n", v)
- var v171v1, v171v2 map[uintptr]int
- v171v1 = v
- bs171 := testMarshalErr(v171v1, h, t, "enc-map-v171")
- if v == nil {
- v171v2 = nil
- } else {
- v171v2 = make(map[uintptr]int, len(v))
- } // reset map
- testUnmarshalErr(v171v2, bs171, h, t, "dec-map-v171")
- testDeepEqualErr(v171v1, v171v2, t, "equal-map-v171")
- if v == nil {
- v171v2 = nil
- } else {
- v171v2 = make(map[uintptr]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v171v2), bs171, h, t, "dec-map-v171-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v171v1, v171v2, t, "equal-map-v171-noaddr")
- if v == nil {
- v171v2 = nil
- } else {
- v171v2 = make(map[uintptr]int, len(v))
- } // reset map
- testUnmarshalErr(&v171v2, bs171, h, t, "dec-map-v171-p-len")
- testDeepEqualErr(v171v1, v171v2, t, "equal-map-v171-p-len")
- bs171 = testMarshalErr(&v171v1, h, t, "enc-map-v171-p")
- v171v2 = nil
- testUnmarshalErr(&v171v2, bs171, h, t, "dec-map-v171-p-nil")
- testDeepEqualErr(v171v1, v171v2, t, "equal-map-v171-p-nil")
- // ...
- if v == nil {
- v171v2 = nil
- } else {
- v171v2 = make(map[uintptr]int, len(v))
- } // reset map
- var v171v3, v171v4 typMapMapUintptrInt
- v171v3 = typMapMapUintptrInt(v171v1)
- v171v4 = typMapMapUintptrInt(v171v2)
- bs171 = testMarshalErr(v171v3, h, t, "enc-map-v171-custom")
- testUnmarshalErr(v171v4, bs171, h, t, "dec-map-v171-p-len")
- testDeepEqualErr(v171v3, v171v4, t, "equal-map-v171-p-len")
- }
- for _, v := range []map[uintptr]int8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v172: %v\n", v)
- var v172v1, v172v2 map[uintptr]int8
- v172v1 = v
- bs172 := testMarshalErr(v172v1, h, t, "enc-map-v172")
- if v == nil {
- v172v2 = nil
- } else {
- v172v2 = make(map[uintptr]int8, len(v))
- } // reset map
- testUnmarshalErr(v172v2, bs172, h, t, "dec-map-v172")
- testDeepEqualErr(v172v1, v172v2, t, "equal-map-v172")
- if v == nil {
- v172v2 = nil
- } else {
- v172v2 = make(map[uintptr]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v172v2), bs172, h, t, "dec-map-v172-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v172v1, v172v2, t, "equal-map-v172-noaddr")
- if v == nil {
- v172v2 = nil
- } else {
- v172v2 = make(map[uintptr]int8, len(v))
- } // reset map
- testUnmarshalErr(&v172v2, bs172, h, t, "dec-map-v172-p-len")
- testDeepEqualErr(v172v1, v172v2, t, "equal-map-v172-p-len")
- bs172 = testMarshalErr(&v172v1, h, t, "enc-map-v172-p")
- v172v2 = nil
- testUnmarshalErr(&v172v2, bs172, h, t, "dec-map-v172-p-nil")
- testDeepEqualErr(v172v1, v172v2, t, "equal-map-v172-p-nil")
- // ...
- if v == nil {
- v172v2 = nil
- } else {
- v172v2 = make(map[uintptr]int8, len(v))
- } // reset map
- var v172v3, v172v4 typMapMapUintptrInt8
- v172v3 = typMapMapUintptrInt8(v172v1)
- v172v4 = typMapMapUintptrInt8(v172v2)
- bs172 = testMarshalErr(v172v3, h, t, "enc-map-v172-custom")
- testUnmarshalErr(v172v4, bs172, h, t, "dec-map-v172-p-len")
- testDeepEqualErr(v172v3, v172v4, t, "equal-map-v172-p-len")
- }
- for _, v := range []map[uintptr]int16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v173: %v\n", v)
- var v173v1, v173v2 map[uintptr]int16
- v173v1 = v
- bs173 := testMarshalErr(v173v1, h, t, "enc-map-v173")
- if v == nil {
- v173v2 = nil
- } else {
- v173v2 = make(map[uintptr]int16, len(v))
- } // reset map
- testUnmarshalErr(v173v2, bs173, h, t, "dec-map-v173")
- testDeepEqualErr(v173v1, v173v2, t, "equal-map-v173")
- if v == nil {
- v173v2 = nil
- } else {
- v173v2 = make(map[uintptr]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v173v2), bs173, h, t, "dec-map-v173-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v173v1, v173v2, t, "equal-map-v173-noaddr")
- if v == nil {
- v173v2 = nil
- } else {
- v173v2 = make(map[uintptr]int16, len(v))
- } // reset map
- testUnmarshalErr(&v173v2, bs173, h, t, "dec-map-v173-p-len")
- testDeepEqualErr(v173v1, v173v2, t, "equal-map-v173-p-len")
- bs173 = testMarshalErr(&v173v1, h, t, "enc-map-v173-p")
- v173v2 = nil
- testUnmarshalErr(&v173v2, bs173, h, t, "dec-map-v173-p-nil")
- testDeepEqualErr(v173v1, v173v2, t, "equal-map-v173-p-nil")
- // ...
- if v == nil {
- v173v2 = nil
- } else {
- v173v2 = make(map[uintptr]int16, len(v))
- } // reset map
- var v173v3, v173v4 typMapMapUintptrInt16
- v173v3 = typMapMapUintptrInt16(v173v1)
- v173v4 = typMapMapUintptrInt16(v173v2)
- bs173 = testMarshalErr(v173v3, h, t, "enc-map-v173-custom")
- testUnmarshalErr(v173v4, bs173, h, t, "dec-map-v173-p-len")
- testDeepEqualErr(v173v3, v173v4, t, "equal-map-v173-p-len")
- }
- for _, v := range []map[uintptr]int32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v174: %v\n", v)
- var v174v1, v174v2 map[uintptr]int32
- v174v1 = v
- bs174 := testMarshalErr(v174v1, h, t, "enc-map-v174")
- if v == nil {
- v174v2 = nil
- } else {
- v174v2 = make(map[uintptr]int32, len(v))
- } // reset map
- testUnmarshalErr(v174v2, bs174, h, t, "dec-map-v174")
- testDeepEqualErr(v174v1, v174v2, t, "equal-map-v174")
- if v == nil {
- v174v2 = nil
- } else {
- v174v2 = make(map[uintptr]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v174v2), bs174, h, t, "dec-map-v174-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v174v1, v174v2, t, "equal-map-v174-noaddr")
- if v == nil {
- v174v2 = nil
- } else {
- v174v2 = make(map[uintptr]int32, len(v))
- } // reset map
- testUnmarshalErr(&v174v2, bs174, h, t, "dec-map-v174-p-len")
- testDeepEqualErr(v174v1, v174v2, t, "equal-map-v174-p-len")
- bs174 = testMarshalErr(&v174v1, h, t, "enc-map-v174-p")
- v174v2 = nil
- testUnmarshalErr(&v174v2, bs174, h, t, "dec-map-v174-p-nil")
- testDeepEqualErr(v174v1, v174v2, t, "equal-map-v174-p-nil")
- // ...
- if v == nil {
- v174v2 = nil
- } else {
- v174v2 = make(map[uintptr]int32, len(v))
- } // reset map
- var v174v3, v174v4 typMapMapUintptrInt32
- v174v3 = typMapMapUintptrInt32(v174v1)
- v174v4 = typMapMapUintptrInt32(v174v2)
- bs174 = testMarshalErr(v174v3, h, t, "enc-map-v174-custom")
- testUnmarshalErr(v174v4, bs174, h, t, "dec-map-v174-p-len")
- testDeepEqualErr(v174v3, v174v4, t, "equal-map-v174-p-len")
- }
- for _, v := range []map[uintptr]int64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v175: %v\n", v)
- var v175v1, v175v2 map[uintptr]int64
- v175v1 = v
- bs175 := testMarshalErr(v175v1, h, t, "enc-map-v175")
- if v == nil {
- v175v2 = nil
- } else {
- v175v2 = make(map[uintptr]int64, len(v))
- } // reset map
- testUnmarshalErr(v175v2, bs175, h, t, "dec-map-v175")
- testDeepEqualErr(v175v1, v175v2, t, "equal-map-v175")
- if v == nil {
- v175v2 = nil
- } else {
- v175v2 = make(map[uintptr]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v175v2), bs175, h, t, "dec-map-v175-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v175v1, v175v2, t, "equal-map-v175-noaddr")
- if v == nil {
- v175v2 = nil
- } else {
- v175v2 = make(map[uintptr]int64, len(v))
- } // reset map
- testUnmarshalErr(&v175v2, bs175, h, t, "dec-map-v175-p-len")
- testDeepEqualErr(v175v1, v175v2, t, "equal-map-v175-p-len")
- bs175 = testMarshalErr(&v175v1, h, t, "enc-map-v175-p")
- v175v2 = nil
- testUnmarshalErr(&v175v2, bs175, h, t, "dec-map-v175-p-nil")
- testDeepEqualErr(v175v1, v175v2, t, "equal-map-v175-p-nil")
- // ...
- if v == nil {
- v175v2 = nil
- } else {
- v175v2 = make(map[uintptr]int64, len(v))
- } // reset map
- var v175v3, v175v4 typMapMapUintptrInt64
- v175v3 = typMapMapUintptrInt64(v175v1)
- v175v4 = typMapMapUintptrInt64(v175v2)
- bs175 = testMarshalErr(v175v3, h, t, "enc-map-v175-custom")
- testUnmarshalErr(v175v4, bs175, h, t, "dec-map-v175-p-len")
- testDeepEqualErr(v175v3, v175v4, t, "equal-map-v175-p-len")
- }
- for _, v := range []map[uintptr]float32{nil, {}, {44: 0, 33: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v176: %v\n", v)
- var v176v1, v176v2 map[uintptr]float32
- v176v1 = v
- bs176 := testMarshalErr(v176v1, h, t, "enc-map-v176")
- if v == nil {
- v176v2 = nil
- } else {
- v176v2 = make(map[uintptr]float32, len(v))
- } // reset map
- testUnmarshalErr(v176v2, bs176, h, t, "dec-map-v176")
- testDeepEqualErr(v176v1, v176v2, t, "equal-map-v176")
- if v == nil {
- v176v2 = nil
- } else {
- v176v2 = make(map[uintptr]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v176v2), bs176, h, t, "dec-map-v176-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v176v1, v176v2, t, "equal-map-v176-noaddr")
- if v == nil {
- v176v2 = nil
- } else {
- v176v2 = make(map[uintptr]float32, len(v))
- } // reset map
- testUnmarshalErr(&v176v2, bs176, h, t, "dec-map-v176-p-len")
- testDeepEqualErr(v176v1, v176v2, t, "equal-map-v176-p-len")
- bs176 = testMarshalErr(&v176v1, h, t, "enc-map-v176-p")
- v176v2 = nil
- testUnmarshalErr(&v176v2, bs176, h, t, "dec-map-v176-p-nil")
- testDeepEqualErr(v176v1, v176v2, t, "equal-map-v176-p-nil")
- // ...
- if v == nil {
- v176v2 = nil
- } else {
- v176v2 = make(map[uintptr]float32, len(v))
- } // reset map
- var v176v3, v176v4 typMapMapUintptrFloat32
- v176v3 = typMapMapUintptrFloat32(v176v1)
- v176v4 = typMapMapUintptrFloat32(v176v2)
- bs176 = testMarshalErr(v176v3, h, t, "enc-map-v176-custom")
- testUnmarshalErr(v176v4, bs176, h, t, "dec-map-v176-p-len")
- testDeepEqualErr(v176v3, v176v4, t, "equal-map-v176-p-len")
- }
- for _, v := range []map[uintptr]float64{nil, {}, {44: 0, 33: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v177: %v\n", v)
- var v177v1, v177v2 map[uintptr]float64
- v177v1 = v
- bs177 := testMarshalErr(v177v1, h, t, "enc-map-v177")
- if v == nil {
- v177v2 = nil
- } else {
- v177v2 = make(map[uintptr]float64, len(v))
- } // reset map
- testUnmarshalErr(v177v2, bs177, h, t, "dec-map-v177")
- testDeepEqualErr(v177v1, v177v2, t, "equal-map-v177")
- if v == nil {
- v177v2 = nil
- } else {
- v177v2 = make(map[uintptr]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v177v2), bs177, h, t, "dec-map-v177-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v177v1, v177v2, t, "equal-map-v177-noaddr")
- if v == nil {
- v177v2 = nil
- } else {
- v177v2 = make(map[uintptr]float64, len(v))
- } // reset map
- testUnmarshalErr(&v177v2, bs177, h, t, "dec-map-v177-p-len")
- testDeepEqualErr(v177v1, v177v2, t, "equal-map-v177-p-len")
- bs177 = testMarshalErr(&v177v1, h, t, "enc-map-v177-p")
- v177v2 = nil
- testUnmarshalErr(&v177v2, bs177, h, t, "dec-map-v177-p-nil")
- testDeepEqualErr(v177v1, v177v2, t, "equal-map-v177-p-nil")
- // ...
- if v == nil {
- v177v2 = nil
- } else {
- v177v2 = make(map[uintptr]float64, len(v))
- } // reset map
- var v177v3, v177v4 typMapMapUintptrFloat64
- v177v3 = typMapMapUintptrFloat64(v177v1)
- v177v4 = typMapMapUintptrFloat64(v177v2)
- bs177 = testMarshalErr(v177v3, h, t, "enc-map-v177-custom")
- testUnmarshalErr(v177v4, bs177, h, t, "dec-map-v177-p-len")
- testDeepEqualErr(v177v3, v177v4, t, "equal-map-v177-p-len")
- }
- for _, v := range []map[uintptr]bool{nil, {}, {44: false, 33: true}} {
- // fmt.Printf(">>>> running mammoth map v178: %v\n", v)
- var v178v1, v178v2 map[uintptr]bool
- v178v1 = v
- bs178 := testMarshalErr(v178v1, h, t, "enc-map-v178")
- if v == nil {
- v178v2 = nil
- } else {
- v178v2 = make(map[uintptr]bool, len(v))
- } // reset map
- testUnmarshalErr(v178v2, bs178, h, t, "dec-map-v178")
- testDeepEqualErr(v178v1, v178v2, t, "equal-map-v178")
- if v == nil {
- v178v2 = nil
- } else {
- v178v2 = make(map[uintptr]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v178v2), bs178, h, t, "dec-map-v178-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v178v1, v178v2, t, "equal-map-v178-noaddr")
- if v == nil {
- v178v2 = nil
- } else {
- v178v2 = make(map[uintptr]bool, len(v))
- } // reset map
- testUnmarshalErr(&v178v2, bs178, h, t, "dec-map-v178-p-len")
- testDeepEqualErr(v178v1, v178v2, t, "equal-map-v178-p-len")
- bs178 = testMarshalErr(&v178v1, h, t, "enc-map-v178-p")
- v178v2 = nil
- testUnmarshalErr(&v178v2, bs178, h, t, "dec-map-v178-p-nil")
- testDeepEqualErr(v178v1, v178v2, t, "equal-map-v178-p-nil")
- // ...
- if v == nil {
- v178v2 = nil
- } else {
- v178v2 = make(map[uintptr]bool, len(v))
- } // reset map
- var v178v3, v178v4 typMapMapUintptrBool
- v178v3 = typMapMapUintptrBool(v178v1)
- v178v4 = typMapMapUintptrBool(v178v2)
- bs178 = testMarshalErr(v178v3, h, t, "enc-map-v178-custom")
- testUnmarshalErr(v178v4, bs178, h, t, "dec-map-v178-p-len")
- testDeepEqualErr(v178v3, v178v4, t, "equal-map-v178-p-len")
- }
- for _, v := range []map[int]interface{}{nil, {}, {44: nil, 33: "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v181: %v\n", v)
- var v181v1, v181v2 map[int]interface{}
- v181v1 = v
- bs181 := testMarshalErr(v181v1, h, t, "enc-map-v181")
- if v == nil {
- v181v2 = nil
- } else {
- v181v2 = make(map[int]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v181v2, bs181, h, t, "dec-map-v181")
- testDeepEqualErr(v181v1, v181v2, t, "equal-map-v181")
- if v == nil {
- v181v2 = nil
- } else {
- v181v2 = make(map[int]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v181v2), bs181, h, t, "dec-map-v181-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v181v1, v181v2, t, "equal-map-v181-noaddr")
- if v == nil {
- v181v2 = nil
- } else {
- v181v2 = make(map[int]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v181v2, bs181, h, t, "dec-map-v181-p-len")
- testDeepEqualErr(v181v1, v181v2, t, "equal-map-v181-p-len")
- bs181 = testMarshalErr(&v181v1, h, t, "enc-map-v181-p")
- v181v2 = nil
- testUnmarshalErr(&v181v2, bs181, h, t, "dec-map-v181-p-nil")
- testDeepEqualErr(v181v1, v181v2, t, "equal-map-v181-p-nil")
- // ...
- if v == nil {
- v181v2 = nil
- } else {
- v181v2 = make(map[int]interface{}, len(v))
- } // reset map
- var v181v3, v181v4 typMapMapIntIntf
- v181v3 = typMapMapIntIntf(v181v1)
- v181v4 = typMapMapIntIntf(v181v2)
- bs181 = testMarshalErr(v181v3, h, t, "enc-map-v181-custom")
- testUnmarshalErr(v181v4, bs181, h, t, "dec-map-v181-p-len")
- testDeepEqualErr(v181v3, v181v4, t, "equal-map-v181-p-len")
- }
- for _, v := range []map[int]string{nil, {}, {44: "", 33: "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v182: %v\n", v)
- var v182v1, v182v2 map[int]string
- v182v1 = v
- bs182 := testMarshalErr(v182v1, h, t, "enc-map-v182")
- if v == nil {
- v182v2 = nil
- } else {
- v182v2 = make(map[int]string, len(v))
- } // reset map
- testUnmarshalErr(v182v2, bs182, h, t, "dec-map-v182")
- testDeepEqualErr(v182v1, v182v2, t, "equal-map-v182")
- if v == nil {
- v182v2 = nil
- } else {
- v182v2 = make(map[int]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v182v2), bs182, h, t, "dec-map-v182-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v182v1, v182v2, t, "equal-map-v182-noaddr")
- if v == nil {
- v182v2 = nil
- } else {
- v182v2 = make(map[int]string, len(v))
- } // reset map
- testUnmarshalErr(&v182v2, bs182, h, t, "dec-map-v182-p-len")
- testDeepEqualErr(v182v1, v182v2, t, "equal-map-v182-p-len")
- bs182 = testMarshalErr(&v182v1, h, t, "enc-map-v182-p")
- v182v2 = nil
- testUnmarshalErr(&v182v2, bs182, h, t, "dec-map-v182-p-nil")
- testDeepEqualErr(v182v1, v182v2, t, "equal-map-v182-p-nil")
- // ...
- if v == nil {
- v182v2 = nil
- } else {
- v182v2 = make(map[int]string, len(v))
- } // reset map
- var v182v3, v182v4 typMapMapIntString
- v182v3 = typMapMapIntString(v182v1)
- v182v4 = typMapMapIntString(v182v2)
- bs182 = testMarshalErr(v182v3, h, t, "enc-map-v182-custom")
- testUnmarshalErr(v182v4, bs182, h, t, "dec-map-v182-p-len")
- testDeepEqualErr(v182v3, v182v4, t, "equal-map-v182-p-len")
- }
- for _, v := range []map[int]uint{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v183: %v\n", v)
- var v183v1, v183v2 map[int]uint
- v183v1 = v
- bs183 := testMarshalErr(v183v1, h, t, "enc-map-v183")
- if v == nil {
- v183v2 = nil
- } else {
- v183v2 = make(map[int]uint, len(v))
- } // reset map
- testUnmarshalErr(v183v2, bs183, h, t, "dec-map-v183")
- testDeepEqualErr(v183v1, v183v2, t, "equal-map-v183")
- if v == nil {
- v183v2 = nil
- } else {
- v183v2 = make(map[int]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v183v2), bs183, h, t, "dec-map-v183-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v183v1, v183v2, t, "equal-map-v183-noaddr")
- if v == nil {
- v183v2 = nil
- } else {
- v183v2 = make(map[int]uint, len(v))
- } // reset map
- testUnmarshalErr(&v183v2, bs183, h, t, "dec-map-v183-p-len")
- testDeepEqualErr(v183v1, v183v2, t, "equal-map-v183-p-len")
- bs183 = testMarshalErr(&v183v1, h, t, "enc-map-v183-p")
- v183v2 = nil
- testUnmarshalErr(&v183v2, bs183, h, t, "dec-map-v183-p-nil")
- testDeepEqualErr(v183v1, v183v2, t, "equal-map-v183-p-nil")
- // ...
- if v == nil {
- v183v2 = nil
- } else {
- v183v2 = make(map[int]uint, len(v))
- } // reset map
- var v183v3, v183v4 typMapMapIntUint
- v183v3 = typMapMapIntUint(v183v1)
- v183v4 = typMapMapIntUint(v183v2)
- bs183 = testMarshalErr(v183v3, h, t, "enc-map-v183-custom")
- testUnmarshalErr(v183v4, bs183, h, t, "dec-map-v183-p-len")
- testDeepEqualErr(v183v3, v183v4, t, "equal-map-v183-p-len")
- }
- for _, v := range []map[int]uint8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v184: %v\n", v)
- var v184v1, v184v2 map[int]uint8
- v184v1 = v
- bs184 := testMarshalErr(v184v1, h, t, "enc-map-v184")
- if v == nil {
- v184v2 = nil
- } else {
- v184v2 = make(map[int]uint8, len(v))
- } // reset map
- testUnmarshalErr(v184v2, bs184, h, t, "dec-map-v184")
- testDeepEqualErr(v184v1, v184v2, t, "equal-map-v184")
- if v == nil {
- v184v2 = nil
- } else {
- v184v2 = make(map[int]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v184v2), bs184, h, t, "dec-map-v184-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v184v1, v184v2, t, "equal-map-v184-noaddr")
- if v == nil {
- v184v2 = nil
- } else {
- v184v2 = make(map[int]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v184v2, bs184, h, t, "dec-map-v184-p-len")
- testDeepEqualErr(v184v1, v184v2, t, "equal-map-v184-p-len")
- bs184 = testMarshalErr(&v184v1, h, t, "enc-map-v184-p")
- v184v2 = nil
- testUnmarshalErr(&v184v2, bs184, h, t, "dec-map-v184-p-nil")
- testDeepEqualErr(v184v1, v184v2, t, "equal-map-v184-p-nil")
- // ...
- if v == nil {
- v184v2 = nil
- } else {
- v184v2 = make(map[int]uint8, len(v))
- } // reset map
- var v184v3, v184v4 typMapMapIntUint8
- v184v3 = typMapMapIntUint8(v184v1)
- v184v4 = typMapMapIntUint8(v184v2)
- bs184 = testMarshalErr(v184v3, h, t, "enc-map-v184-custom")
- testUnmarshalErr(v184v4, bs184, h, t, "dec-map-v184-p-len")
- testDeepEqualErr(v184v3, v184v4, t, "equal-map-v184-p-len")
- }
- for _, v := range []map[int]uint16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v185: %v\n", v)
- var v185v1, v185v2 map[int]uint16
- v185v1 = v
- bs185 := testMarshalErr(v185v1, h, t, "enc-map-v185")
- if v == nil {
- v185v2 = nil
- } else {
- v185v2 = make(map[int]uint16, len(v))
- } // reset map
- testUnmarshalErr(v185v2, bs185, h, t, "dec-map-v185")
- testDeepEqualErr(v185v1, v185v2, t, "equal-map-v185")
- if v == nil {
- v185v2 = nil
- } else {
- v185v2 = make(map[int]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v185v2), bs185, h, t, "dec-map-v185-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v185v1, v185v2, t, "equal-map-v185-noaddr")
- if v == nil {
- v185v2 = nil
- } else {
- v185v2 = make(map[int]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v185v2, bs185, h, t, "dec-map-v185-p-len")
- testDeepEqualErr(v185v1, v185v2, t, "equal-map-v185-p-len")
- bs185 = testMarshalErr(&v185v1, h, t, "enc-map-v185-p")
- v185v2 = nil
- testUnmarshalErr(&v185v2, bs185, h, t, "dec-map-v185-p-nil")
- testDeepEqualErr(v185v1, v185v2, t, "equal-map-v185-p-nil")
- // ...
- if v == nil {
- v185v2 = nil
- } else {
- v185v2 = make(map[int]uint16, len(v))
- } // reset map
- var v185v3, v185v4 typMapMapIntUint16
- v185v3 = typMapMapIntUint16(v185v1)
- v185v4 = typMapMapIntUint16(v185v2)
- bs185 = testMarshalErr(v185v3, h, t, "enc-map-v185-custom")
- testUnmarshalErr(v185v4, bs185, h, t, "dec-map-v185-p-len")
- testDeepEqualErr(v185v3, v185v4, t, "equal-map-v185-p-len")
- }
- for _, v := range []map[int]uint32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v186: %v\n", v)
- var v186v1, v186v2 map[int]uint32
- v186v1 = v
- bs186 := testMarshalErr(v186v1, h, t, "enc-map-v186")
- if v == nil {
- v186v2 = nil
- } else {
- v186v2 = make(map[int]uint32, len(v))
- } // reset map
- testUnmarshalErr(v186v2, bs186, h, t, "dec-map-v186")
- testDeepEqualErr(v186v1, v186v2, t, "equal-map-v186")
- if v == nil {
- v186v2 = nil
- } else {
- v186v2 = make(map[int]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v186v2), bs186, h, t, "dec-map-v186-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v186v1, v186v2, t, "equal-map-v186-noaddr")
- if v == nil {
- v186v2 = nil
- } else {
- v186v2 = make(map[int]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v186v2, bs186, h, t, "dec-map-v186-p-len")
- testDeepEqualErr(v186v1, v186v2, t, "equal-map-v186-p-len")
- bs186 = testMarshalErr(&v186v1, h, t, "enc-map-v186-p")
- v186v2 = nil
- testUnmarshalErr(&v186v2, bs186, h, t, "dec-map-v186-p-nil")
- testDeepEqualErr(v186v1, v186v2, t, "equal-map-v186-p-nil")
- // ...
- if v == nil {
- v186v2 = nil
- } else {
- v186v2 = make(map[int]uint32, len(v))
- } // reset map
- var v186v3, v186v4 typMapMapIntUint32
- v186v3 = typMapMapIntUint32(v186v1)
- v186v4 = typMapMapIntUint32(v186v2)
- bs186 = testMarshalErr(v186v3, h, t, "enc-map-v186-custom")
- testUnmarshalErr(v186v4, bs186, h, t, "dec-map-v186-p-len")
- testDeepEqualErr(v186v3, v186v4, t, "equal-map-v186-p-len")
- }
- for _, v := range []map[int]uint64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v187: %v\n", v)
- var v187v1, v187v2 map[int]uint64
- v187v1 = v
- bs187 := testMarshalErr(v187v1, h, t, "enc-map-v187")
- if v == nil {
- v187v2 = nil
- } else {
- v187v2 = make(map[int]uint64, len(v))
- } // reset map
- testUnmarshalErr(v187v2, bs187, h, t, "dec-map-v187")
- testDeepEqualErr(v187v1, v187v2, t, "equal-map-v187")
- if v == nil {
- v187v2 = nil
- } else {
- v187v2 = make(map[int]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v187v2), bs187, h, t, "dec-map-v187-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v187v1, v187v2, t, "equal-map-v187-noaddr")
- if v == nil {
- v187v2 = nil
- } else {
- v187v2 = make(map[int]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v187v2, bs187, h, t, "dec-map-v187-p-len")
- testDeepEqualErr(v187v1, v187v2, t, "equal-map-v187-p-len")
- bs187 = testMarshalErr(&v187v1, h, t, "enc-map-v187-p")
- v187v2 = nil
- testUnmarshalErr(&v187v2, bs187, h, t, "dec-map-v187-p-nil")
- testDeepEqualErr(v187v1, v187v2, t, "equal-map-v187-p-nil")
- // ...
- if v == nil {
- v187v2 = nil
- } else {
- v187v2 = make(map[int]uint64, len(v))
- } // reset map
- var v187v3, v187v4 typMapMapIntUint64
- v187v3 = typMapMapIntUint64(v187v1)
- v187v4 = typMapMapIntUint64(v187v2)
- bs187 = testMarshalErr(v187v3, h, t, "enc-map-v187-custom")
- testUnmarshalErr(v187v4, bs187, h, t, "dec-map-v187-p-len")
- testDeepEqualErr(v187v3, v187v4, t, "equal-map-v187-p-len")
- }
- for _, v := range []map[int]uintptr{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v188: %v\n", v)
- var v188v1, v188v2 map[int]uintptr
- v188v1 = v
- bs188 := testMarshalErr(v188v1, h, t, "enc-map-v188")
- if v == nil {
- v188v2 = nil
- } else {
- v188v2 = make(map[int]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v188v2, bs188, h, t, "dec-map-v188")
- testDeepEqualErr(v188v1, v188v2, t, "equal-map-v188")
- if v == nil {
- v188v2 = nil
- } else {
- v188v2 = make(map[int]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v188v2), bs188, h, t, "dec-map-v188-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v188v1, v188v2, t, "equal-map-v188-noaddr")
- if v == nil {
- v188v2 = nil
- } else {
- v188v2 = make(map[int]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v188v2, bs188, h, t, "dec-map-v188-p-len")
- testDeepEqualErr(v188v1, v188v2, t, "equal-map-v188-p-len")
- bs188 = testMarshalErr(&v188v1, h, t, "enc-map-v188-p")
- v188v2 = nil
- testUnmarshalErr(&v188v2, bs188, h, t, "dec-map-v188-p-nil")
- testDeepEqualErr(v188v1, v188v2, t, "equal-map-v188-p-nil")
- // ...
- if v == nil {
- v188v2 = nil
- } else {
- v188v2 = make(map[int]uintptr, len(v))
- } // reset map
- var v188v3, v188v4 typMapMapIntUintptr
- v188v3 = typMapMapIntUintptr(v188v1)
- v188v4 = typMapMapIntUintptr(v188v2)
- bs188 = testMarshalErr(v188v3, h, t, "enc-map-v188-custom")
- testUnmarshalErr(v188v4, bs188, h, t, "dec-map-v188-p-len")
- testDeepEqualErr(v188v3, v188v4, t, "equal-map-v188-p-len")
- }
- for _, v := range []map[int]int{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v189: %v\n", v)
- var v189v1, v189v2 map[int]int
- v189v1 = v
- bs189 := testMarshalErr(v189v1, h, t, "enc-map-v189")
- if v == nil {
- v189v2 = nil
- } else {
- v189v2 = make(map[int]int, len(v))
- } // reset map
- testUnmarshalErr(v189v2, bs189, h, t, "dec-map-v189")
- testDeepEqualErr(v189v1, v189v2, t, "equal-map-v189")
- if v == nil {
- v189v2 = nil
- } else {
- v189v2 = make(map[int]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v189v2), bs189, h, t, "dec-map-v189-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v189v1, v189v2, t, "equal-map-v189-noaddr")
- if v == nil {
- v189v2 = nil
- } else {
- v189v2 = make(map[int]int, len(v))
- } // reset map
- testUnmarshalErr(&v189v2, bs189, h, t, "dec-map-v189-p-len")
- testDeepEqualErr(v189v1, v189v2, t, "equal-map-v189-p-len")
- bs189 = testMarshalErr(&v189v1, h, t, "enc-map-v189-p")
- v189v2 = nil
- testUnmarshalErr(&v189v2, bs189, h, t, "dec-map-v189-p-nil")
- testDeepEqualErr(v189v1, v189v2, t, "equal-map-v189-p-nil")
- // ...
- if v == nil {
- v189v2 = nil
- } else {
- v189v2 = make(map[int]int, len(v))
- } // reset map
- var v189v3, v189v4 typMapMapIntInt
- v189v3 = typMapMapIntInt(v189v1)
- v189v4 = typMapMapIntInt(v189v2)
- bs189 = testMarshalErr(v189v3, h, t, "enc-map-v189-custom")
- testUnmarshalErr(v189v4, bs189, h, t, "dec-map-v189-p-len")
- testDeepEqualErr(v189v3, v189v4, t, "equal-map-v189-p-len")
- }
- for _, v := range []map[int]int8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v190: %v\n", v)
- var v190v1, v190v2 map[int]int8
- v190v1 = v
- bs190 := testMarshalErr(v190v1, h, t, "enc-map-v190")
- if v == nil {
- v190v2 = nil
- } else {
- v190v2 = make(map[int]int8, len(v))
- } // reset map
- testUnmarshalErr(v190v2, bs190, h, t, "dec-map-v190")
- testDeepEqualErr(v190v1, v190v2, t, "equal-map-v190")
- if v == nil {
- v190v2 = nil
- } else {
- v190v2 = make(map[int]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v190v2), bs190, h, t, "dec-map-v190-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v190v1, v190v2, t, "equal-map-v190-noaddr")
- if v == nil {
- v190v2 = nil
- } else {
- v190v2 = make(map[int]int8, len(v))
- } // reset map
- testUnmarshalErr(&v190v2, bs190, h, t, "dec-map-v190-p-len")
- testDeepEqualErr(v190v1, v190v2, t, "equal-map-v190-p-len")
- bs190 = testMarshalErr(&v190v1, h, t, "enc-map-v190-p")
- v190v2 = nil
- testUnmarshalErr(&v190v2, bs190, h, t, "dec-map-v190-p-nil")
- testDeepEqualErr(v190v1, v190v2, t, "equal-map-v190-p-nil")
- // ...
- if v == nil {
- v190v2 = nil
- } else {
- v190v2 = make(map[int]int8, len(v))
- } // reset map
- var v190v3, v190v4 typMapMapIntInt8
- v190v3 = typMapMapIntInt8(v190v1)
- v190v4 = typMapMapIntInt8(v190v2)
- bs190 = testMarshalErr(v190v3, h, t, "enc-map-v190-custom")
- testUnmarshalErr(v190v4, bs190, h, t, "dec-map-v190-p-len")
- testDeepEqualErr(v190v3, v190v4, t, "equal-map-v190-p-len")
- }
- for _, v := range []map[int]int16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v191: %v\n", v)
- var v191v1, v191v2 map[int]int16
- v191v1 = v
- bs191 := testMarshalErr(v191v1, h, t, "enc-map-v191")
- if v == nil {
- v191v2 = nil
- } else {
- v191v2 = make(map[int]int16, len(v))
- } // reset map
- testUnmarshalErr(v191v2, bs191, h, t, "dec-map-v191")
- testDeepEqualErr(v191v1, v191v2, t, "equal-map-v191")
- if v == nil {
- v191v2 = nil
- } else {
- v191v2 = make(map[int]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v191v2), bs191, h, t, "dec-map-v191-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v191v1, v191v2, t, "equal-map-v191-noaddr")
- if v == nil {
- v191v2 = nil
- } else {
- v191v2 = make(map[int]int16, len(v))
- } // reset map
- testUnmarshalErr(&v191v2, bs191, h, t, "dec-map-v191-p-len")
- testDeepEqualErr(v191v1, v191v2, t, "equal-map-v191-p-len")
- bs191 = testMarshalErr(&v191v1, h, t, "enc-map-v191-p")
- v191v2 = nil
- testUnmarshalErr(&v191v2, bs191, h, t, "dec-map-v191-p-nil")
- testDeepEqualErr(v191v1, v191v2, t, "equal-map-v191-p-nil")
- // ...
- if v == nil {
- v191v2 = nil
- } else {
- v191v2 = make(map[int]int16, len(v))
- } // reset map
- var v191v3, v191v4 typMapMapIntInt16
- v191v3 = typMapMapIntInt16(v191v1)
- v191v4 = typMapMapIntInt16(v191v2)
- bs191 = testMarshalErr(v191v3, h, t, "enc-map-v191-custom")
- testUnmarshalErr(v191v4, bs191, h, t, "dec-map-v191-p-len")
- testDeepEqualErr(v191v3, v191v4, t, "equal-map-v191-p-len")
- }
- for _, v := range []map[int]int32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v192: %v\n", v)
- var v192v1, v192v2 map[int]int32
- v192v1 = v
- bs192 := testMarshalErr(v192v1, h, t, "enc-map-v192")
- if v == nil {
- v192v2 = nil
- } else {
- v192v2 = make(map[int]int32, len(v))
- } // reset map
- testUnmarshalErr(v192v2, bs192, h, t, "dec-map-v192")
- testDeepEqualErr(v192v1, v192v2, t, "equal-map-v192")
- if v == nil {
- v192v2 = nil
- } else {
- v192v2 = make(map[int]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v192v2), bs192, h, t, "dec-map-v192-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v192v1, v192v2, t, "equal-map-v192-noaddr")
- if v == nil {
- v192v2 = nil
- } else {
- v192v2 = make(map[int]int32, len(v))
- } // reset map
- testUnmarshalErr(&v192v2, bs192, h, t, "dec-map-v192-p-len")
- testDeepEqualErr(v192v1, v192v2, t, "equal-map-v192-p-len")
- bs192 = testMarshalErr(&v192v1, h, t, "enc-map-v192-p")
- v192v2 = nil
- testUnmarshalErr(&v192v2, bs192, h, t, "dec-map-v192-p-nil")
- testDeepEqualErr(v192v1, v192v2, t, "equal-map-v192-p-nil")
- // ...
- if v == nil {
- v192v2 = nil
- } else {
- v192v2 = make(map[int]int32, len(v))
- } // reset map
- var v192v3, v192v4 typMapMapIntInt32
- v192v3 = typMapMapIntInt32(v192v1)
- v192v4 = typMapMapIntInt32(v192v2)
- bs192 = testMarshalErr(v192v3, h, t, "enc-map-v192-custom")
- testUnmarshalErr(v192v4, bs192, h, t, "dec-map-v192-p-len")
- testDeepEqualErr(v192v3, v192v4, t, "equal-map-v192-p-len")
- }
- for _, v := range []map[int]int64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v193: %v\n", v)
- var v193v1, v193v2 map[int]int64
- v193v1 = v
- bs193 := testMarshalErr(v193v1, h, t, "enc-map-v193")
- if v == nil {
- v193v2 = nil
- } else {
- v193v2 = make(map[int]int64, len(v))
- } // reset map
- testUnmarshalErr(v193v2, bs193, h, t, "dec-map-v193")
- testDeepEqualErr(v193v1, v193v2, t, "equal-map-v193")
- if v == nil {
- v193v2 = nil
- } else {
- v193v2 = make(map[int]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v193v2), bs193, h, t, "dec-map-v193-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v193v1, v193v2, t, "equal-map-v193-noaddr")
- if v == nil {
- v193v2 = nil
- } else {
- v193v2 = make(map[int]int64, len(v))
- } // reset map
- testUnmarshalErr(&v193v2, bs193, h, t, "dec-map-v193-p-len")
- testDeepEqualErr(v193v1, v193v2, t, "equal-map-v193-p-len")
- bs193 = testMarshalErr(&v193v1, h, t, "enc-map-v193-p")
- v193v2 = nil
- testUnmarshalErr(&v193v2, bs193, h, t, "dec-map-v193-p-nil")
- testDeepEqualErr(v193v1, v193v2, t, "equal-map-v193-p-nil")
- // ...
- if v == nil {
- v193v2 = nil
- } else {
- v193v2 = make(map[int]int64, len(v))
- } // reset map
- var v193v3, v193v4 typMapMapIntInt64
- v193v3 = typMapMapIntInt64(v193v1)
- v193v4 = typMapMapIntInt64(v193v2)
- bs193 = testMarshalErr(v193v3, h, t, "enc-map-v193-custom")
- testUnmarshalErr(v193v4, bs193, h, t, "dec-map-v193-p-len")
- testDeepEqualErr(v193v3, v193v4, t, "equal-map-v193-p-len")
- }
- for _, v := range []map[int]float32{nil, {}, {33: 0, 44: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v194: %v\n", v)
- var v194v1, v194v2 map[int]float32
- v194v1 = v
- bs194 := testMarshalErr(v194v1, h, t, "enc-map-v194")
- if v == nil {
- v194v2 = nil
- } else {
- v194v2 = make(map[int]float32, len(v))
- } // reset map
- testUnmarshalErr(v194v2, bs194, h, t, "dec-map-v194")
- testDeepEqualErr(v194v1, v194v2, t, "equal-map-v194")
- if v == nil {
- v194v2 = nil
- } else {
- v194v2 = make(map[int]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v194v2), bs194, h, t, "dec-map-v194-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v194v1, v194v2, t, "equal-map-v194-noaddr")
- if v == nil {
- v194v2 = nil
- } else {
- v194v2 = make(map[int]float32, len(v))
- } // reset map
- testUnmarshalErr(&v194v2, bs194, h, t, "dec-map-v194-p-len")
- testDeepEqualErr(v194v1, v194v2, t, "equal-map-v194-p-len")
- bs194 = testMarshalErr(&v194v1, h, t, "enc-map-v194-p")
- v194v2 = nil
- testUnmarshalErr(&v194v2, bs194, h, t, "dec-map-v194-p-nil")
- testDeepEqualErr(v194v1, v194v2, t, "equal-map-v194-p-nil")
- // ...
- if v == nil {
- v194v2 = nil
- } else {
- v194v2 = make(map[int]float32, len(v))
- } // reset map
- var v194v3, v194v4 typMapMapIntFloat32
- v194v3 = typMapMapIntFloat32(v194v1)
- v194v4 = typMapMapIntFloat32(v194v2)
- bs194 = testMarshalErr(v194v3, h, t, "enc-map-v194-custom")
- testUnmarshalErr(v194v4, bs194, h, t, "dec-map-v194-p-len")
- testDeepEqualErr(v194v3, v194v4, t, "equal-map-v194-p-len")
- }
- for _, v := range []map[int]float64{nil, {}, {33: 0, 44: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v195: %v\n", v)
- var v195v1, v195v2 map[int]float64
- v195v1 = v
- bs195 := testMarshalErr(v195v1, h, t, "enc-map-v195")
- if v == nil {
- v195v2 = nil
- } else {
- v195v2 = make(map[int]float64, len(v))
- } // reset map
- testUnmarshalErr(v195v2, bs195, h, t, "dec-map-v195")
- testDeepEqualErr(v195v1, v195v2, t, "equal-map-v195")
- if v == nil {
- v195v2 = nil
- } else {
- v195v2 = make(map[int]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v195v2), bs195, h, t, "dec-map-v195-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v195v1, v195v2, t, "equal-map-v195-noaddr")
- if v == nil {
- v195v2 = nil
- } else {
- v195v2 = make(map[int]float64, len(v))
- } // reset map
- testUnmarshalErr(&v195v2, bs195, h, t, "dec-map-v195-p-len")
- testDeepEqualErr(v195v1, v195v2, t, "equal-map-v195-p-len")
- bs195 = testMarshalErr(&v195v1, h, t, "enc-map-v195-p")
- v195v2 = nil
- testUnmarshalErr(&v195v2, bs195, h, t, "dec-map-v195-p-nil")
- testDeepEqualErr(v195v1, v195v2, t, "equal-map-v195-p-nil")
- // ...
- if v == nil {
- v195v2 = nil
- } else {
- v195v2 = make(map[int]float64, len(v))
- } // reset map
- var v195v3, v195v4 typMapMapIntFloat64
- v195v3 = typMapMapIntFloat64(v195v1)
- v195v4 = typMapMapIntFloat64(v195v2)
- bs195 = testMarshalErr(v195v3, h, t, "enc-map-v195-custom")
- testUnmarshalErr(v195v4, bs195, h, t, "dec-map-v195-p-len")
- testDeepEqualErr(v195v3, v195v4, t, "equal-map-v195-p-len")
- }
- for _, v := range []map[int]bool{nil, {}, {33: false, 44: true}} {
- // fmt.Printf(">>>> running mammoth map v196: %v\n", v)
- var v196v1, v196v2 map[int]bool
- v196v1 = v
- bs196 := testMarshalErr(v196v1, h, t, "enc-map-v196")
- if v == nil {
- v196v2 = nil
- } else {
- v196v2 = make(map[int]bool, len(v))
- } // reset map
- testUnmarshalErr(v196v2, bs196, h, t, "dec-map-v196")
- testDeepEqualErr(v196v1, v196v2, t, "equal-map-v196")
- if v == nil {
- v196v2 = nil
- } else {
- v196v2 = make(map[int]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v196v2), bs196, h, t, "dec-map-v196-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v196v1, v196v2, t, "equal-map-v196-noaddr")
- if v == nil {
- v196v2 = nil
- } else {
- v196v2 = make(map[int]bool, len(v))
- } // reset map
- testUnmarshalErr(&v196v2, bs196, h, t, "dec-map-v196-p-len")
- testDeepEqualErr(v196v1, v196v2, t, "equal-map-v196-p-len")
- bs196 = testMarshalErr(&v196v1, h, t, "enc-map-v196-p")
- v196v2 = nil
- testUnmarshalErr(&v196v2, bs196, h, t, "dec-map-v196-p-nil")
- testDeepEqualErr(v196v1, v196v2, t, "equal-map-v196-p-nil")
- // ...
- if v == nil {
- v196v2 = nil
- } else {
- v196v2 = make(map[int]bool, len(v))
- } // reset map
- var v196v3, v196v4 typMapMapIntBool
- v196v3 = typMapMapIntBool(v196v1)
- v196v4 = typMapMapIntBool(v196v2)
- bs196 = testMarshalErr(v196v3, h, t, "enc-map-v196-custom")
- testUnmarshalErr(v196v4, bs196, h, t, "dec-map-v196-p-len")
- testDeepEqualErr(v196v3, v196v4, t, "equal-map-v196-p-len")
- }
- for _, v := range []map[int8]interface{}{nil, {}, {33: nil, 44: "string-is-an-interface"}} {
- // fmt.Printf(">>>> running mammoth map v199: %v\n", v)
- var v199v1, v199v2 map[int8]interface{}
- v199v1 = v
- bs199 := testMarshalErr(v199v1, h, t, "enc-map-v199")
- if v == nil {
- v199v2 = nil
- } else {
- v199v2 = make(map[int8]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v199v2, bs199, h, t, "dec-map-v199")
- testDeepEqualErr(v199v1, v199v2, t, "equal-map-v199")
- if v == nil {
- v199v2 = nil
- } else {
- v199v2 = make(map[int8]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v199v2), bs199, h, t, "dec-map-v199-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v199v1, v199v2, t, "equal-map-v199-noaddr")
- if v == nil {
- v199v2 = nil
- } else {
- v199v2 = make(map[int8]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v199v2, bs199, h, t, "dec-map-v199-p-len")
- testDeepEqualErr(v199v1, v199v2, t, "equal-map-v199-p-len")
- bs199 = testMarshalErr(&v199v1, h, t, "enc-map-v199-p")
- v199v2 = nil
- testUnmarshalErr(&v199v2, bs199, h, t, "dec-map-v199-p-nil")
- testDeepEqualErr(v199v1, v199v2, t, "equal-map-v199-p-nil")
- // ...
- if v == nil {
- v199v2 = nil
- } else {
- v199v2 = make(map[int8]interface{}, len(v))
- } // reset map
- var v199v3, v199v4 typMapMapInt8Intf
- v199v3 = typMapMapInt8Intf(v199v1)
- v199v4 = typMapMapInt8Intf(v199v2)
- bs199 = testMarshalErr(v199v3, h, t, "enc-map-v199-custom")
- testUnmarshalErr(v199v4, bs199, h, t, "dec-map-v199-p-len")
- testDeepEqualErr(v199v3, v199v4, t, "equal-map-v199-p-len")
- }
- for _, v := range []map[int8]string{nil, {}, {33: "", 44: "some-string"}} {
- // fmt.Printf(">>>> running mammoth map v200: %v\n", v)
- var v200v1, v200v2 map[int8]string
- v200v1 = v
- bs200 := testMarshalErr(v200v1, h, t, "enc-map-v200")
- if v == nil {
- v200v2 = nil
- } else {
- v200v2 = make(map[int8]string, len(v))
- } // reset map
- testUnmarshalErr(v200v2, bs200, h, t, "dec-map-v200")
- testDeepEqualErr(v200v1, v200v2, t, "equal-map-v200")
- if v == nil {
- v200v2 = nil
- } else {
- v200v2 = make(map[int8]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v200v2), bs200, h, t, "dec-map-v200-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v200v1, v200v2, t, "equal-map-v200-noaddr")
- if v == nil {
- v200v2 = nil
- } else {
- v200v2 = make(map[int8]string, len(v))
- } // reset map
- testUnmarshalErr(&v200v2, bs200, h, t, "dec-map-v200-p-len")
- testDeepEqualErr(v200v1, v200v2, t, "equal-map-v200-p-len")
- bs200 = testMarshalErr(&v200v1, h, t, "enc-map-v200-p")
- v200v2 = nil
- testUnmarshalErr(&v200v2, bs200, h, t, "dec-map-v200-p-nil")
- testDeepEqualErr(v200v1, v200v2, t, "equal-map-v200-p-nil")
- // ...
- if v == nil {
- v200v2 = nil
- } else {
- v200v2 = make(map[int8]string, len(v))
- } // reset map
- var v200v3, v200v4 typMapMapInt8String
- v200v3 = typMapMapInt8String(v200v1)
- v200v4 = typMapMapInt8String(v200v2)
- bs200 = testMarshalErr(v200v3, h, t, "enc-map-v200-custom")
- testUnmarshalErr(v200v4, bs200, h, t, "dec-map-v200-p-len")
- testDeepEqualErr(v200v3, v200v4, t, "equal-map-v200-p-len")
- }
- for _, v := range []map[int8]uint{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v201: %v\n", v)
- var v201v1, v201v2 map[int8]uint
- v201v1 = v
- bs201 := testMarshalErr(v201v1, h, t, "enc-map-v201")
- if v == nil {
- v201v2 = nil
- } else {
- v201v2 = make(map[int8]uint, len(v))
- } // reset map
- testUnmarshalErr(v201v2, bs201, h, t, "dec-map-v201")
- testDeepEqualErr(v201v1, v201v2, t, "equal-map-v201")
- if v == nil {
- v201v2 = nil
- } else {
- v201v2 = make(map[int8]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v201v2), bs201, h, t, "dec-map-v201-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v201v1, v201v2, t, "equal-map-v201-noaddr")
- if v == nil {
- v201v2 = nil
- } else {
- v201v2 = make(map[int8]uint, len(v))
- } // reset map
- testUnmarshalErr(&v201v2, bs201, h, t, "dec-map-v201-p-len")
- testDeepEqualErr(v201v1, v201v2, t, "equal-map-v201-p-len")
- bs201 = testMarshalErr(&v201v1, h, t, "enc-map-v201-p")
- v201v2 = nil
- testUnmarshalErr(&v201v2, bs201, h, t, "dec-map-v201-p-nil")
- testDeepEqualErr(v201v1, v201v2, t, "equal-map-v201-p-nil")
- // ...
- if v == nil {
- v201v2 = nil
- } else {
- v201v2 = make(map[int8]uint, len(v))
- } // reset map
- var v201v3, v201v4 typMapMapInt8Uint
- v201v3 = typMapMapInt8Uint(v201v1)
- v201v4 = typMapMapInt8Uint(v201v2)
- bs201 = testMarshalErr(v201v3, h, t, "enc-map-v201-custom")
- testUnmarshalErr(v201v4, bs201, h, t, "dec-map-v201-p-len")
- testDeepEqualErr(v201v3, v201v4, t, "equal-map-v201-p-len")
- }
- for _, v := range []map[int8]uint8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v202: %v\n", v)
- var v202v1, v202v2 map[int8]uint8
- v202v1 = v
- bs202 := testMarshalErr(v202v1, h, t, "enc-map-v202")
- if v == nil {
- v202v2 = nil
- } else {
- v202v2 = make(map[int8]uint8, len(v))
- } // reset map
- testUnmarshalErr(v202v2, bs202, h, t, "dec-map-v202")
- testDeepEqualErr(v202v1, v202v2, t, "equal-map-v202")
- if v == nil {
- v202v2 = nil
- } else {
- v202v2 = make(map[int8]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v202v2), bs202, h, t, "dec-map-v202-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v202v1, v202v2, t, "equal-map-v202-noaddr")
- if v == nil {
- v202v2 = nil
- } else {
- v202v2 = make(map[int8]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v202v2, bs202, h, t, "dec-map-v202-p-len")
- testDeepEqualErr(v202v1, v202v2, t, "equal-map-v202-p-len")
- bs202 = testMarshalErr(&v202v1, h, t, "enc-map-v202-p")
- v202v2 = nil
- testUnmarshalErr(&v202v2, bs202, h, t, "dec-map-v202-p-nil")
- testDeepEqualErr(v202v1, v202v2, t, "equal-map-v202-p-nil")
- // ...
- if v == nil {
- v202v2 = nil
- } else {
- v202v2 = make(map[int8]uint8, len(v))
- } // reset map
- var v202v3, v202v4 typMapMapInt8Uint8
- v202v3 = typMapMapInt8Uint8(v202v1)
- v202v4 = typMapMapInt8Uint8(v202v2)
- bs202 = testMarshalErr(v202v3, h, t, "enc-map-v202-custom")
- testUnmarshalErr(v202v4, bs202, h, t, "dec-map-v202-p-len")
- testDeepEqualErr(v202v3, v202v4, t, "equal-map-v202-p-len")
- }
- for _, v := range []map[int8]uint16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v203: %v\n", v)
- var v203v1, v203v2 map[int8]uint16
- v203v1 = v
- bs203 := testMarshalErr(v203v1, h, t, "enc-map-v203")
- if v == nil {
- v203v2 = nil
- } else {
- v203v2 = make(map[int8]uint16, len(v))
- } // reset map
- testUnmarshalErr(v203v2, bs203, h, t, "dec-map-v203")
- testDeepEqualErr(v203v1, v203v2, t, "equal-map-v203")
- if v == nil {
- v203v2 = nil
- } else {
- v203v2 = make(map[int8]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v203v2), bs203, h, t, "dec-map-v203-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v203v1, v203v2, t, "equal-map-v203-noaddr")
- if v == nil {
- v203v2 = nil
- } else {
- v203v2 = make(map[int8]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v203v2, bs203, h, t, "dec-map-v203-p-len")
- testDeepEqualErr(v203v1, v203v2, t, "equal-map-v203-p-len")
- bs203 = testMarshalErr(&v203v1, h, t, "enc-map-v203-p")
- v203v2 = nil
- testUnmarshalErr(&v203v2, bs203, h, t, "dec-map-v203-p-nil")
- testDeepEqualErr(v203v1, v203v2, t, "equal-map-v203-p-nil")
- // ...
- if v == nil {
- v203v2 = nil
- } else {
- v203v2 = make(map[int8]uint16, len(v))
- } // reset map
- var v203v3, v203v4 typMapMapInt8Uint16
- v203v3 = typMapMapInt8Uint16(v203v1)
- v203v4 = typMapMapInt8Uint16(v203v2)
- bs203 = testMarshalErr(v203v3, h, t, "enc-map-v203-custom")
- testUnmarshalErr(v203v4, bs203, h, t, "dec-map-v203-p-len")
- testDeepEqualErr(v203v3, v203v4, t, "equal-map-v203-p-len")
- }
- for _, v := range []map[int8]uint32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v204: %v\n", v)
- var v204v1, v204v2 map[int8]uint32
- v204v1 = v
- bs204 := testMarshalErr(v204v1, h, t, "enc-map-v204")
- if v == nil {
- v204v2 = nil
- } else {
- v204v2 = make(map[int8]uint32, len(v))
- } // reset map
- testUnmarshalErr(v204v2, bs204, h, t, "dec-map-v204")
- testDeepEqualErr(v204v1, v204v2, t, "equal-map-v204")
- if v == nil {
- v204v2 = nil
- } else {
- v204v2 = make(map[int8]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v204v2), bs204, h, t, "dec-map-v204-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v204v1, v204v2, t, "equal-map-v204-noaddr")
- if v == nil {
- v204v2 = nil
- } else {
- v204v2 = make(map[int8]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v204v2, bs204, h, t, "dec-map-v204-p-len")
- testDeepEqualErr(v204v1, v204v2, t, "equal-map-v204-p-len")
- bs204 = testMarshalErr(&v204v1, h, t, "enc-map-v204-p")
- v204v2 = nil
- testUnmarshalErr(&v204v2, bs204, h, t, "dec-map-v204-p-nil")
- testDeepEqualErr(v204v1, v204v2, t, "equal-map-v204-p-nil")
- // ...
- if v == nil {
- v204v2 = nil
- } else {
- v204v2 = make(map[int8]uint32, len(v))
- } // reset map
- var v204v3, v204v4 typMapMapInt8Uint32
- v204v3 = typMapMapInt8Uint32(v204v1)
- v204v4 = typMapMapInt8Uint32(v204v2)
- bs204 = testMarshalErr(v204v3, h, t, "enc-map-v204-custom")
- testUnmarshalErr(v204v4, bs204, h, t, "dec-map-v204-p-len")
- testDeepEqualErr(v204v3, v204v4, t, "equal-map-v204-p-len")
- }
- for _, v := range []map[int8]uint64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v205: %v\n", v)
- var v205v1, v205v2 map[int8]uint64
- v205v1 = v
- bs205 := testMarshalErr(v205v1, h, t, "enc-map-v205")
- if v == nil {
- v205v2 = nil
- } else {
- v205v2 = make(map[int8]uint64, len(v))
- } // reset map
- testUnmarshalErr(v205v2, bs205, h, t, "dec-map-v205")
- testDeepEqualErr(v205v1, v205v2, t, "equal-map-v205")
- if v == nil {
- v205v2 = nil
- } else {
- v205v2 = make(map[int8]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v205v2), bs205, h, t, "dec-map-v205-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v205v1, v205v2, t, "equal-map-v205-noaddr")
- if v == nil {
- v205v2 = nil
- } else {
- v205v2 = make(map[int8]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v205v2, bs205, h, t, "dec-map-v205-p-len")
- testDeepEqualErr(v205v1, v205v2, t, "equal-map-v205-p-len")
- bs205 = testMarshalErr(&v205v1, h, t, "enc-map-v205-p")
- v205v2 = nil
- testUnmarshalErr(&v205v2, bs205, h, t, "dec-map-v205-p-nil")
- testDeepEqualErr(v205v1, v205v2, t, "equal-map-v205-p-nil")
- // ...
- if v == nil {
- v205v2 = nil
- } else {
- v205v2 = make(map[int8]uint64, len(v))
- } // reset map
- var v205v3, v205v4 typMapMapInt8Uint64
- v205v3 = typMapMapInt8Uint64(v205v1)
- v205v4 = typMapMapInt8Uint64(v205v2)
- bs205 = testMarshalErr(v205v3, h, t, "enc-map-v205-custom")
- testUnmarshalErr(v205v4, bs205, h, t, "dec-map-v205-p-len")
- testDeepEqualErr(v205v3, v205v4, t, "equal-map-v205-p-len")
- }
- for _, v := range []map[int8]uintptr{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v206: %v\n", v)
- var v206v1, v206v2 map[int8]uintptr
- v206v1 = v
- bs206 := testMarshalErr(v206v1, h, t, "enc-map-v206")
- if v == nil {
- v206v2 = nil
- } else {
- v206v2 = make(map[int8]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v206v2, bs206, h, t, "dec-map-v206")
- testDeepEqualErr(v206v1, v206v2, t, "equal-map-v206")
- if v == nil {
- v206v2 = nil
- } else {
- v206v2 = make(map[int8]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v206v2), bs206, h, t, "dec-map-v206-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v206v1, v206v2, t, "equal-map-v206-noaddr")
- if v == nil {
- v206v2 = nil
- } else {
- v206v2 = make(map[int8]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v206v2, bs206, h, t, "dec-map-v206-p-len")
- testDeepEqualErr(v206v1, v206v2, t, "equal-map-v206-p-len")
- bs206 = testMarshalErr(&v206v1, h, t, "enc-map-v206-p")
- v206v2 = nil
- testUnmarshalErr(&v206v2, bs206, h, t, "dec-map-v206-p-nil")
- testDeepEqualErr(v206v1, v206v2, t, "equal-map-v206-p-nil")
- // ...
- if v == nil {
- v206v2 = nil
- } else {
- v206v2 = make(map[int8]uintptr, len(v))
- } // reset map
- var v206v3, v206v4 typMapMapInt8Uintptr
- v206v3 = typMapMapInt8Uintptr(v206v1)
- v206v4 = typMapMapInt8Uintptr(v206v2)
- bs206 = testMarshalErr(v206v3, h, t, "enc-map-v206-custom")
- testUnmarshalErr(v206v4, bs206, h, t, "dec-map-v206-p-len")
- testDeepEqualErr(v206v3, v206v4, t, "equal-map-v206-p-len")
- }
- for _, v := range []map[int8]int{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v207: %v\n", v)
- var v207v1, v207v2 map[int8]int
- v207v1 = v
- bs207 := testMarshalErr(v207v1, h, t, "enc-map-v207")
- if v == nil {
- v207v2 = nil
- } else {
- v207v2 = make(map[int8]int, len(v))
- } // reset map
- testUnmarshalErr(v207v2, bs207, h, t, "dec-map-v207")
- testDeepEqualErr(v207v1, v207v2, t, "equal-map-v207")
- if v == nil {
- v207v2 = nil
- } else {
- v207v2 = make(map[int8]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v207v2), bs207, h, t, "dec-map-v207-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v207v1, v207v2, t, "equal-map-v207-noaddr")
- if v == nil {
- v207v2 = nil
- } else {
- v207v2 = make(map[int8]int, len(v))
- } // reset map
- testUnmarshalErr(&v207v2, bs207, h, t, "dec-map-v207-p-len")
- testDeepEqualErr(v207v1, v207v2, t, "equal-map-v207-p-len")
- bs207 = testMarshalErr(&v207v1, h, t, "enc-map-v207-p")
- v207v2 = nil
- testUnmarshalErr(&v207v2, bs207, h, t, "dec-map-v207-p-nil")
- testDeepEqualErr(v207v1, v207v2, t, "equal-map-v207-p-nil")
- // ...
- if v == nil {
- v207v2 = nil
- } else {
- v207v2 = make(map[int8]int, len(v))
- } // reset map
- var v207v3, v207v4 typMapMapInt8Int
- v207v3 = typMapMapInt8Int(v207v1)
- v207v4 = typMapMapInt8Int(v207v2)
- bs207 = testMarshalErr(v207v3, h, t, "enc-map-v207-custom")
- testUnmarshalErr(v207v4, bs207, h, t, "dec-map-v207-p-len")
- testDeepEqualErr(v207v3, v207v4, t, "equal-map-v207-p-len")
- }
- for _, v := range []map[int8]int8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v208: %v\n", v)
- var v208v1, v208v2 map[int8]int8
- v208v1 = v
- bs208 := testMarshalErr(v208v1, h, t, "enc-map-v208")
- if v == nil {
- v208v2 = nil
- } else {
- v208v2 = make(map[int8]int8, len(v))
- } // reset map
- testUnmarshalErr(v208v2, bs208, h, t, "dec-map-v208")
- testDeepEqualErr(v208v1, v208v2, t, "equal-map-v208")
- if v == nil {
- v208v2 = nil
- } else {
- v208v2 = make(map[int8]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v208v2), bs208, h, t, "dec-map-v208-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v208v1, v208v2, t, "equal-map-v208-noaddr")
- if v == nil {
- v208v2 = nil
- } else {
- v208v2 = make(map[int8]int8, len(v))
- } // reset map
- testUnmarshalErr(&v208v2, bs208, h, t, "dec-map-v208-p-len")
- testDeepEqualErr(v208v1, v208v2, t, "equal-map-v208-p-len")
- bs208 = testMarshalErr(&v208v1, h, t, "enc-map-v208-p")
- v208v2 = nil
- testUnmarshalErr(&v208v2, bs208, h, t, "dec-map-v208-p-nil")
- testDeepEqualErr(v208v1, v208v2, t, "equal-map-v208-p-nil")
- // ...
- if v == nil {
- v208v2 = nil
- } else {
- v208v2 = make(map[int8]int8, len(v))
- } // reset map
- var v208v3, v208v4 typMapMapInt8Int8
- v208v3 = typMapMapInt8Int8(v208v1)
- v208v4 = typMapMapInt8Int8(v208v2)
- bs208 = testMarshalErr(v208v3, h, t, "enc-map-v208-custom")
- testUnmarshalErr(v208v4, bs208, h, t, "dec-map-v208-p-len")
- testDeepEqualErr(v208v3, v208v4, t, "equal-map-v208-p-len")
- }
- for _, v := range []map[int8]int16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v209: %v\n", v)
- var v209v1, v209v2 map[int8]int16
- v209v1 = v
- bs209 := testMarshalErr(v209v1, h, t, "enc-map-v209")
- if v == nil {
- v209v2 = nil
- } else {
- v209v2 = make(map[int8]int16, len(v))
- } // reset map
- testUnmarshalErr(v209v2, bs209, h, t, "dec-map-v209")
- testDeepEqualErr(v209v1, v209v2, t, "equal-map-v209")
- if v == nil {
- v209v2 = nil
- } else {
- v209v2 = make(map[int8]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v209v2), bs209, h, t, "dec-map-v209-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v209v1, v209v2, t, "equal-map-v209-noaddr")
- if v == nil {
- v209v2 = nil
- } else {
- v209v2 = make(map[int8]int16, len(v))
- } // reset map
- testUnmarshalErr(&v209v2, bs209, h, t, "dec-map-v209-p-len")
- testDeepEqualErr(v209v1, v209v2, t, "equal-map-v209-p-len")
- bs209 = testMarshalErr(&v209v1, h, t, "enc-map-v209-p")
- v209v2 = nil
- testUnmarshalErr(&v209v2, bs209, h, t, "dec-map-v209-p-nil")
- testDeepEqualErr(v209v1, v209v2, t, "equal-map-v209-p-nil")
- // ...
- if v == nil {
- v209v2 = nil
- } else {
- v209v2 = make(map[int8]int16, len(v))
- } // reset map
- var v209v3, v209v4 typMapMapInt8Int16
- v209v3 = typMapMapInt8Int16(v209v1)
- v209v4 = typMapMapInt8Int16(v209v2)
- bs209 = testMarshalErr(v209v3, h, t, "enc-map-v209-custom")
- testUnmarshalErr(v209v4, bs209, h, t, "dec-map-v209-p-len")
- testDeepEqualErr(v209v3, v209v4, t, "equal-map-v209-p-len")
- }
- for _, v := range []map[int8]int32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v210: %v\n", v)
- var v210v1, v210v2 map[int8]int32
- v210v1 = v
- bs210 := testMarshalErr(v210v1, h, t, "enc-map-v210")
- if v == nil {
- v210v2 = nil
- } else {
- v210v2 = make(map[int8]int32, len(v))
- } // reset map
- testUnmarshalErr(v210v2, bs210, h, t, "dec-map-v210")
- testDeepEqualErr(v210v1, v210v2, t, "equal-map-v210")
- if v == nil {
- v210v2 = nil
- } else {
- v210v2 = make(map[int8]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v210v2), bs210, h, t, "dec-map-v210-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v210v1, v210v2, t, "equal-map-v210-noaddr")
- if v == nil {
- v210v2 = nil
- } else {
- v210v2 = make(map[int8]int32, len(v))
- } // reset map
- testUnmarshalErr(&v210v2, bs210, h, t, "dec-map-v210-p-len")
- testDeepEqualErr(v210v1, v210v2, t, "equal-map-v210-p-len")
- bs210 = testMarshalErr(&v210v1, h, t, "enc-map-v210-p")
- v210v2 = nil
- testUnmarshalErr(&v210v2, bs210, h, t, "dec-map-v210-p-nil")
- testDeepEqualErr(v210v1, v210v2, t, "equal-map-v210-p-nil")
- // ...
- if v == nil {
- v210v2 = nil
- } else {
- v210v2 = make(map[int8]int32, len(v))
- } // reset map
- var v210v3, v210v4 typMapMapInt8Int32
- v210v3 = typMapMapInt8Int32(v210v1)
- v210v4 = typMapMapInt8Int32(v210v2)
- bs210 = testMarshalErr(v210v3, h, t, "enc-map-v210-custom")
- testUnmarshalErr(v210v4, bs210, h, t, "dec-map-v210-p-len")
- testDeepEqualErr(v210v3, v210v4, t, "equal-map-v210-p-len")
- }
- for _, v := range []map[int8]int64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v211: %v\n", v)
- var v211v1, v211v2 map[int8]int64
- v211v1 = v
- bs211 := testMarshalErr(v211v1, h, t, "enc-map-v211")
- if v == nil {
- v211v2 = nil
- } else {
- v211v2 = make(map[int8]int64, len(v))
- } // reset map
- testUnmarshalErr(v211v2, bs211, h, t, "dec-map-v211")
- testDeepEqualErr(v211v1, v211v2, t, "equal-map-v211")
- if v == nil {
- v211v2 = nil
- } else {
- v211v2 = make(map[int8]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v211v2), bs211, h, t, "dec-map-v211-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v211v1, v211v2, t, "equal-map-v211-noaddr")
- if v == nil {
- v211v2 = nil
- } else {
- v211v2 = make(map[int8]int64, len(v))
- } // reset map
- testUnmarshalErr(&v211v2, bs211, h, t, "dec-map-v211-p-len")
- testDeepEqualErr(v211v1, v211v2, t, "equal-map-v211-p-len")
- bs211 = testMarshalErr(&v211v1, h, t, "enc-map-v211-p")
- v211v2 = nil
- testUnmarshalErr(&v211v2, bs211, h, t, "dec-map-v211-p-nil")
- testDeepEqualErr(v211v1, v211v2, t, "equal-map-v211-p-nil")
- // ...
- if v == nil {
- v211v2 = nil
- } else {
- v211v2 = make(map[int8]int64, len(v))
- } // reset map
- var v211v3, v211v4 typMapMapInt8Int64
- v211v3 = typMapMapInt8Int64(v211v1)
- v211v4 = typMapMapInt8Int64(v211v2)
- bs211 = testMarshalErr(v211v3, h, t, "enc-map-v211-custom")
- testUnmarshalErr(v211v4, bs211, h, t, "dec-map-v211-p-len")
- testDeepEqualErr(v211v3, v211v4, t, "equal-map-v211-p-len")
- }
- for _, v := range []map[int8]float32{nil, {}, {44: 0, 33: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v212: %v\n", v)
- var v212v1, v212v2 map[int8]float32
- v212v1 = v
- bs212 := testMarshalErr(v212v1, h, t, "enc-map-v212")
- if v == nil {
- v212v2 = nil
- } else {
- v212v2 = make(map[int8]float32, len(v))
- } // reset map
- testUnmarshalErr(v212v2, bs212, h, t, "dec-map-v212")
- testDeepEqualErr(v212v1, v212v2, t, "equal-map-v212")
- if v == nil {
- v212v2 = nil
- } else {
- v212v2 = make(map[int8]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v212v2), bs212, h, t, "dec-map-v212-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v212v1, v212v2, t, "equal-map-v212-noaddr")
- if v == nil {
- v212v2 = nil
- } else {
- v212v2 = make(map[int8]float32, len(v))
- } // reset map
- testUnmarshalErr(&v212v2, bs212, h, t, "dec-map-v212-p-len")
- testDeepEqualErr(v212v1, v212v2, t, "equal-map-v212-p-len")
- bs212 = testMarshalErr(&v212v1, h, t, "enc-map-v212-p")
- v212v2 = nil
- testUnmarshalErr(&v212v2, bs212, h, t, "dec-map-v212-p-nil")
- testDeepEqualErr(v212v1, v212v2, t, "equal-map-v212-p-nil")
- // ...
- if v == nil {
- v212v2 = nil
- } else {
- v212v2 = make(map[int8]float32, len(v))
- } // reset map
- var v212v3, v212v4 typMapMapInt8Float32
- v212v3 = typMapMapInt8Float32(v212v1)
- v212v4 = typMapMapInt8Float32(v212v2)
- bs212 = testMarshalErr(v212v3, h, t, "enc-map-v212-custom")
- testUnmarshalErr(v212v4, bs212, h, t, "dec-map-v212-p-len")
- testDeepEqualErr(v212v3, v212v4, t, "equal-map-v212-p-len")
- }
- for _, v := range []map[int8]float64{nil, {}, {44: 0, 33: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v213: %v\n", v)
- var v213v1, v213v2 map[int8]float64
- v213v1 = v
- bs213 := testMarshalErr(v213v1, h, t, "enc-map-v213")
- if v == nil {
- v213v2 = nil
- } else {
- v213v2 = make(map[int8]float64, len(v))
- } // reset map
- testUnmarshalErr(v213v2, bs213, h, t, "dec-map-v213")
- testDeepEqualErr(v213v1, v213v2, t, "equal-map-v213")
- if v == nil {
- v213v2 = nil
- } else {
- v213v2 = make(map[int8]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v213v2), bs213, h, t, "dec-map-v213-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v213v1, v213v2, t, "equal-map-v213-noaddr")
- if v == nil {
- v213v2 = nil
- } else {
- v213v2 = make(map[int8]float64, len(v))
- } // reset map
- testUnmarshalErr(&v213v2, bs213, h, t, "dec-map-v213-p-len")
- testDeepEqualErr(v213v1, v213v2, t, "equal-map-v213-p-len")
- bs213 = testMarshalErr(&v213v1, h, t, "enc-map-v213-p")
- v213v2 = nil
- testUnmarshalErr(&v213v2, bs213, h, t, "dec-map-v213-p-nil")
- testDeepEqualErr(v213v1, v213v2, t, "equal-map-v213-p-nil")
- // ...
- if v == nil {
- v213v2 = nil
- } else {
- v213v2 = make(map[int8]float64, len(v))
- } // reset map
- var v213v3, v213v4 typMapMapInt8Float64
- v213v3 = typMapMapInt8Float64(v213v1)
- v213v4 = typMapMapInt8Float64(v213v2)
- bs213 = testMarshalErr(v213v3, h, t, "enc-map-v213-custom")
- testUnmarshalErr(v213v4, bs213, h, t, "dec-map-v213-p-len")
- testDeepEqualErr(v213v3, v213v4, t, "equal-map-v213-p-len")
- }
- for _, v := range []map[int8]bool{nil, {}, {44: false, 33: true}} {
- // fmt.Printf(">>>> running mammoth map v214: %v\n", v)
- var v214v1, v214v2 map[int8]bool
- v214v1 = v
- bs214 := testMarshalErr(v214v1, h, t, "enc-map-v214")
- if v == nil {
- v214v2 = nil
- } else {
- v214v2 = make(map[int8]bool, len(v))
- } // reset map
- testUnmarshalErr(v214v2, bs214, h, t, "dec-map-v214")
- testDeepEqualErr(v214v1, v214v2, t, "equal-map-v214")
- if v == nil {
- v214v2 = nil
- } else {
- v214v2 = make(map[int8]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v214v2), bs214, h, t, "dec-map-v214-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v214v1, v214v2, t, "equal-map-v214-noaddr")
- if v == nil {
- v214v2 = nil
- } else {
- v214v2 = make(map[int8]bool, len(v))
- } // reset map
- testUnmarshalErr(&v214v2, bs214, h, t, "dec-map-v214-p-len")
- testDeepEqualErr(v214v1, v214v2, t, "equal-map-v214-p-len")
- bs214 = testMarshalErr(&v214v1, h, t, "enc-map-v214-p")
- v214v2 = nil
- testUnmarshalErr(&v214v2, bs214, h, t, "dec-map-v214-p-nil")
- testDeepEqualErr(v214v1, v214v2, t, "equal-map-v214-p-nil")
- // ...
- if v == nil {
- v214v2 = nil
- } else {
- v214v2 = make(map[int8]bool, len(v))
- } // reset map
- var v214v3, v214v4 typMapMapInt8Bool
- v214v3 = typMapMapInt8Bool(v214v1)
- v214v4 = typMapMapInt8Bool(v214v2)
- bs214 = testMarshalErr(v214v3, h, t, "enc-map-v214-custom")
- testUnmarshalErr(v214v4, bs214, h, t, "dec-map-v214-p-len")
- testDeepEqualErr(v214v3, v214v4, t, "equal-map-v214-p-len")
- }
- for _, v := range []map[int16]interface{}{nil, {}, {44: nil, 33: "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v217: %v\n", v)
- var v217v1, v217v2 map[int16]interface{}
- v217v1 = v
- bs217 := testMarshalErr(v217v1, h, t, "enc-map-v217")
- if v == nil {
- v217v2 = nil
- } else {
- v217v2 = make(map[int16]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v217v2, bs217, h, t, "dec-map-v217")
- testDeepEqualErr(v217v1, v217v2, t, "equal-map-v217")
- if v == nil {
- v217v2 = nil
- } else {
- v217v2 = make(map[int16]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v217v2), bs217, h, t, "dec-map-v217-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v217v1, v217v2, t, "equal-map-v217-noaddr")
- if v == nil {
- v217v2 = nil
- } else {
- v217v2 = make(map[int16]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v217v2, bs217, h, t, "dec-map-v217-p-len")
- testDeepEqualErr(v217v1, v217v2, t, "equal-map-v217-p-len")
- bs217 = testMarshalErr(&v217v1, h, t, "enc-map-v217-p")
- v217v2 = nil
- testUnmarshalErr(&v217v2, bs217, h, t, "dec-map-v217-p-nil")
- testDeepEqualErr(v217v1, v217v2, t, "equal-map-v217-p-nil")
- // ...
- if v == nil {
- v217v2 = nil
- } else {
- v217v2 = make(map[int16]interface{}, len(v))
- } // reset map
- var v217v3, v217v4 typMapMapInt16Intf
- v217v3 = typMapMapInt16Intf(v217v1)
- v217v4 = typMapMapInt16Intf(v217v2)
- bs217 = testMarshalErr(v217v3, h, t, "enc-map-v217-custom")
- testUnmarshalErr(v217v4, bs217, h, t, "dec-map-v217-p-len")
- testDeepEqualErr(v217v3, v217v4, t, "equal-map-v217-p-len")
- }
- for _, v := range []map[int16]string{nil, {}, {44: "", 33: "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v218: %v\n", v)
- var v218v1, v218v2 map[int16]string
- v218v1 = v
- bs218 := testMarshalErr(v218v1, h, t, "enc-map-v218")
- if v == nil {
- v218v2 = nil
- } else {
- v218v2 = make(map[int16]string, len(v))
- } // reset map
- testUnmarshalErr(v218v2, bs218, h, t, "dec-map-v218")
- testDeepEqualErr(v218v1, v218v2, t, "equal-map-v218")
- if v == nil {
- v218v2 = nil
- } else {
- v218v2 = make(map[int16]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v218v2), bs218, h, t, "dec-map-v218-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v218v1, v218v2, t, "equal-map-v218-noaddr")
- if v == nil {
- v218v2 = nil
- } else {
- v218v2 = make(map[int16]string, len(v))
- } // reset map
- testUnmarshalErr(&v218v2, bs218, h, t, "dec-map-v218-p-len")
- testDeepEqualErr(v218v1, v218v2, t, "equal-map-v218-p-len")
- bs218 = testMarshalErr(&v218v1, h, t, "enc-map-v218-p")
- v218v2 = nil
- testUnmarshalErr(&v218v2, bs218, h, t, "dec-map-v218-p-nil")
- testDeepEqualErr(v218v1, v218v2, t, "equal-map-v218-p-nil")
- // ...
- if v == nil {
- v218v2 = nil
- } else {
- v218v2 = make(map[int16]string, len(v))
- } // reset map
- var v218v3, v218v4 typMapMapInt16String
- v218v3 = typMapMapInt16String(v218v1)
- v218v4 = typMapMapInt16String(v218v2)
- bs218 = testMarshalErr(v218v3, h, t, "enc-map-v218-custom")
- testUnmarshalErr(v218v4, bs218, h, t, "dec-map-v218-p-len")
- testDeepEqualErr(v218v3, v218v4, t, "equal-map-v218-p-len")
- }
- for _, v := range []map[int16]uint{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v219: %v\n", v)
- var v219v1, v219v2 map[int16]uint
- v219v1 = v
- bs219 := testMarshalErr(v219v1, h, t, "enc-map-v219")
- if v == nil {
- v219v2 = nil
- } else {
- v219v2 = make(map[int16]uint, len(v))
- } // reset map
- testUnmarshalErr(v219v2, bs219, h, t, "dec-map-v219")
- testDeepEqualErr(v219v1, v219v2, t, "equal-map-v219")
- if v == nil {
- v219v2 = nil
- } else {
- v219v2 = make(map[int16]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v219v2), bs219, h, t, "dec-map-v219-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v219v1, v219v2, t, "equal-map-v219-noaddr")
- if v == nil {
- v219v2 = nil
- } else {
- v219v2 = make(map[int16]uint, len(v))
- } // reset map
- testUnmarshalErr(&v219v2, bs219, h, t, "dec-map-v219-p-len")
- testDeepEqualErr(v219v1, v219v2, t, "equal-map-v219-p-len")
- bs219 = testMarshalErr(&v219v1, h, t, "enc-map-v219-p")
- v219v2 = nil
- testUnmarshalErr(&v219v2, bs219, h, t, "dec-map-v219-p-nil")
- testDeepEqualErr(v219v1, v219v2, t, "equal-map-v219-p-nil")
- // ...
- if v == nil {
- v219v2 = nil
- } else {
- v219v2 = make(map[int16]uint, len(v))
- } // reset map
- var v219v3, v219v4 typMapMapInt16Uint
- v219v3 = typMapMapInt16Uint(v219v1)
- v219v4 = typMapMapInt16Uint(v219v2)
- bs219 = testMarshalErr(v219v3, h, t, "enc-map-v219-custom")
- testUnmarshalErr(v219v4, bs219, h, t, "dec-map-v219-p-len")
- testDeepEqualErr(v219v3, v219v4, t, "equal-map-v219-p-len")
- }
- for _, v := range []map[int16]uint8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v220: %v\n", v)
- var v220v1, v220v2 map[int16]uint8
- v220v1 = v
- bs220 := testMarshalErr(v220v1, h, t, "enc-map-v220")
- if v == nil {
- v220v2 = nil
- } else {
- v220v2 = make(map[int16]uint8, len(v))
- } // reset map
- testUnmarshalErr(v220v2, bs220, h, t, "dec-map-v220")
- testDeepEqualErr(v220v1, v220v2, t, "equal-map-v220")
- if v == nil {
- v220v2 = nil
- } else {
- v220v2 = make(map[int16]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v220v2), bs220, h, t, "dec-map-v220-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v220v1, v220v2, t, "equal-map-v220-noaddr")
- if v == nil {
- v220v2 = nil
- } else {
- v220v2 = make(map[int16]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v220v2, bs220, h, t, "dec-map-v220-p-len")
- testDeepEqualErr(v220v1, v220v2, t, "equal-map-v220-p-len")
- bs220 = testMarshalErr(&v220v1, h, t, "enc-map-v220-p")
- v220v2 = nil
- testUnmarshalErr(&v220v2, bs220, h, t, "dec-map-v220-p-nil")
- testDeepEqualErr(v220v1, v220v2, t, "equal-map-v220-p-nil")
- // ...
- if v == nil {
- v220v2 = nil
- } else {
- v220v2 = make(map[int16]uint8, len(v))
- } // reset map
- var v220v3, v220v4 typMapMapInt16Uint8
- v220v3 = typMapMapInt16Uint8(v220v1)
- v220v4 = typMapMapInt16Uint8(v220v2)
- bs220 = testMarshalErr(v220v3, h, t, "enc-map-v220-custom")
- testUnmarshalErr(v220v4, bs220, h, t, "dec-map-v220-p-len")
- testDeepEqualErr(v220v3, v220v4, t, "equal-map-v220-p-len")
- }
- for _, v := range []map[int16]uint16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v221: %v\n", v)
- var v221v1, v221v2 map[int16]uint16
- v221v1 = v
- bs221 := testMarshalErr(v221v1, h, t, "enc-map-v221")
- if v == nil {
- v221v2 = nil
- } else {
- v221v2 = make(map[int16]uint16, len(v))
- } // reset map
- testUnmarshalErr(v221v2, bs221, h, t, "dec-map-v221")
- testDeepEqualErr(v221v1, v221v2, t, "equal-map-v221")
- if v == nil {
- v221v2 = nil
- } else {
- v221v2 = make(map[int16]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v221v2), bs221, h, t, "dec-map-v221-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v221v1, v221v2, t, "equal-map-v221-noaddr")
- if v == nil {
- v221v2 = nil
- } else {
- v221v2 = make(map[int16]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v221v2, bs221, h, t, "dec-map-v221-p-len")
- testDeepEqualErr(v221v1, v221v2, t, "equal-map-v221-p-len")
- bs221 = testMarshalErr(&v221v1, h, t, "enc-map-v221-p")
- v221v2 = nil
- testUnmarshalErr(&v221v2, bs221, h, t, "dec-map-v221-p-nil")
- testDeepEqualErr(v221v1, v221v2, t, "equal-map-v221-p-nil")
- // ...
- if v == nil {
- v221v2 = nil
- } else {
- v221v2 = make(map[int16]uint16, len(v))
- } // reset map
- var v221v3, v221v4 typMapMapInt16Uint16
- v221v3 = typMapMapInt16Uint16(v221v1)
- v221v4 = typMapMapInt16Uint16(v221v2)
- bs221 = testMarshalErr(v221v3, h, t, "enc-map-v221-custom")
- testUnmarshalErr(v221v4, bs221, h, t, "dec-map-v221-p-len")
- testDeepEqualErr(v221v3, v221v4, t, "equal-map-v221-p-len")
- }
- for _, v := range []map[int16]uint32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v222: %v\n", v)
- var v222v1, v222v2 map[int16]uint32
- v222v1 = v
- bs222 := testMarshalErr(v222v1, h, t, "enc-map-v222")
- if v == nil {
- v222v2 = nil
- } else {
- v222v2 = make(map[int16]uint32, len(v))
- } // reset map
- testUnmarshalErr(v222v2, bs222, h, t, "dec-map-v222")
- testDeepEqualErr(v222v1, v222v2, t, "equal-map-v222")
- if v == nil {
- v222v2 = nil
- } else {
- v222v2 = make(map[int16]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v222v2), bs222, h, t, "dec-map-v222-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v222v1, v222v2, t, "equal-map-v222-noaddr")
- if v == nil {
- v222v2 = nil
- } else {
- v222v2 = make(map[int16]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v222v2, bs222, h, t, "dec-map-v222-p-len")
- testDeepEqualErr(v222v1, v222v2, t, "equal-map-v222-p-len")
- bs222 = testMarshalErr(&v222v1, h, t, "enc-map-v222-p")
- v222v2 = nil
- testUnmarshalErr(&v222v2, bs222, h, t, "dec-map-v222-p-nil")
- testDeepEqualErr(v222v1, v222v2, t, "equal-map-v222-p-nil")
- // ...
- if v == nil {
- v222v2 = nil
- } else {
- v222v2 = make(map[int16]uint32, len(v))
- } // reset map
- var v222v3, v222v4 typMapMapInt16Uint32
- v222v3 = typMapMapInt16Uint32(v222v1)
- v222v4 = typMapMapInt16Uint32(v222v2)
- bs222 = testMarshalErr(v222v3, h, t, "enc-map-v222-custom")
- testUnmarshalErr(v222v4, bs222, h, t, "dec-map-v222-p-len")
- testDeepEqualErr(v222v3, v222v4, t, "equal-map-v222-p-len")
- }
- for _, v := range []map[int16]uint64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v223: %v\n", v)
- var v223v1, v223v2 map[int16]uint64
- v223v1 = v
- bs223 := testMarshalErr(v223v1, h, t, "enc-map-v223")
- if v == nil {
- v223v2 = nil
- } else {
- v223v2 = make(map[int16]uint64, len(v))
- } // reset map
- testUnmarshalErr(v223v2, bs223, h, t, "dec-map-v223")
- testDeepEqualErr(v223v1, v223v2, t, "equal-map-v223")
- if v == nil {
- v223v2 = nil
- } else {
- v223v2 = make(map[int16]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v223v2), bs223, h, t, "dec-map-v223-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v223v1, v223v2, t, "equal-map-v223-noaddr")
- if v == nil {
- v223v2 = nil
- } else {
- v223v2 = make(map[int16]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v223v2, bs223, h, t, "dec-map-v223-p-len")
- testDeepEqualErr(v223v1, v223v2, t, "equal-map-v223-p-len")
- bs223 = testMarshalErr(&v223v1, h, t, "enc-map-v223-p")
- v223v2 = nil
- testUnmarshalErr(&v223v2, bs223, h, t, "dec-map-v223-p-nil")
- testDeepEqualErr(v223v1, v223v2, t, "equal-map-v223-p-nil")
- // ...
- if v == nil {
- v223v2 = nil
- } else {
- v223v2 = make(map[int16]uint64, len(v))
- } // reset map
- var v223v3, v223v4 typMapMapInt16Uint64
- v223v3 = typMapMapInt16Uint64(v223v1)
- v223v4 = typMapMapInt16Uint64(v223v2)
- bs223 = testMarshalErr(v223v3, h, t, "enc-map-v223-custom")
- testUnmarshalErr(v223v4, bs223, h, t, "dec-map-v223-p-len")
- testDeepEqualErr(v223v3, v223v4, t, "equal-map-v223-p-len")
- }
- for _, v := range []map[int16]uintptr{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v224: %v\n", v)
- var v224v1, v224v2 map[int16]uintptr
- v224v1 = v
- bs224 := testMarshalErr(v224v1, h, t, "enc-map-v224")
- if v == nil {
- v224v2 = nil
- } else {
- v224v2 = make(map[int16]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v224v2, bs224, h, t, "dec-map-v224")
- testDeepEqualErr(v224v1, v224v2, t, "equal-map-v224")
- if v == nil {
- v224v2 = nil
- } else {
- v224v2 = make(map[int16]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v224v2), bs224, h, t, "dec-map-v224-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v224v1, v224v2, t, "equal-map-v224-noaddr")
- if v == nil {
- v224v2 = nil
- } else {
- v224v2 = make(map[int16]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v224v2, bs224, h, t, "dec-map-v224-p-len")
- testDeepEqualErr(v224v1, v224v2, t, "equal-map-v224-p-len")
- bs224 = testMarshalErr(&v224v1, h, t, "enc-map-v224-p")
- v224v2 = nil
- testUnmarshalErr(&v224v2, bs224, h, t, "dec-map-v224-p-nil")
- testDeepEqualErr(v224v1, v224v2, t, "equal-map-v224-p-nil")
- // ...
- if v == nil {
- v224v2 = nil
- } else {
- v224v2 = make(map[int16]uintptr, len(v))
- } // reset map
- var v224v3, v224v4 typMapMapInt16Uintptr
- v224v3 = typMapMapInt16Uintptr(v224v1)
- v224v4 = typMapMapInt16Uintptr(v224v2)
- bs224 = testMarshalErr(v224v3, h, t, "enc-map-v224-custom")
- testUnmarshalErr(v224v4, bs224, h, t, "dec-map-v224-p-len")
- testDeepEqualErr(v224v3, v224v4, t, "equal-map-v224-p-len")
- }
- for _, v := range []map[int16]int{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v225: %v\n", v)
- var v225v1, v225v2 map[int16]int
- v225v1 = v
- bs225 := testMarshalErr(v225v1, h, t, "enc-map-v225")
- if v == nil {
- v225v2 = nil
- } else {
- v225v2 = make(map[int16]int, len(v))
- } // reset map
- testUnmarshalErr(v225v2, bs225, h, t, "dec-map-v225")
- testDeepEqualErr(v225v1, v225v2, t, "equal-map-v225")
- if v == nil {
- v225v2 = nil
- } else {
- v225v2 = make(map[int16]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v225v2), bs225, h, t, "dec-map-v225-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v225v1, v225v2, t, "equal-map-v225-noaddr")
- if v == nil {
- v225v2 = nil
- } else {
- v225v2 = make(map[int16]int, len(v))
- } // reset map
- testUnmarshalErr(&v225v2, bs225, h, t, "dec-map-v225-p-len")
- testDeepEqualErr(v225v1, v225v2, t, "equal-map-v225-p-len")
- bs225 = testMarshalErr(&v225v1, h, t, "enc-map-v225-p")
- v225v2 = nil
- testUnmarshalErr(&v225v2, bs225, h, t, "dec-map-v225-p-nil")
- testDeepEqualErr(v225v1, v225v2, t, "equal-map-v225-p-nil")
- // ...
- if v == nil {
- v225v2 = nil
- } else {
- v225v2 = make(map[int16]int, len(v))
- } // reset map
- var v225v3, v225v4 typMapMapInt16Int
- v225v3 = typMapMapInt16Int(v225v1)
- v225v4 = typMapMapInt16Int(v225v2)
- bs225 = testMarshalErr(v225v3, h, t, "enc-map-v225-custom")
- testUnmarshalErr(v225v4, bs225, h, t, "dec-map-v225-p-len")
- testDeepEqualErr(v225v3, v225v4, t, "equal-map-v225-p-len")
- }
- for _, v := range []map[int16]int8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v226: %v\n", v)
- var v226v1, v226v2 map[int16]int8
- v226v1 = v
- bs226 := testMarshalErr(v226v1, h, t, "enc-map-v226")
- if v == nil {
- v226v2 = nil
- } else {
- v226v2 = make(map[int16]int8, len(v))
- } // reset map
- testUnmarshalErr(v226v2, bs226, h, t, "dec-map-v226")
- testDeepEqualErr(v226v1, v226v2, t, "equal-map-v226")
- if v == nil {
- v226v2 = nil
- } else {
- v226v2 = make(map[int16]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v226v2), bs226, h, t, "dec-map-v226-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v226v1, v226v2, t, "equal-map-v226-noaddr")
- if v == nil {
- v226v2 = nil
- } else {
- v226v2 = make(map[int16]int8, len(v))
- } // reset map
- testUnmarshalErr(&v226v2, bs226, h, t, "dec-map-v226-p-len")
- testDeepEqualErr(v226v1, v226v2, t, "equal-map-v226-p-len")
- bs226 = testMarshalErr(&v226v1, h, t, "enc-map-v226-p")
- v226v2 = nil
- testUnmarshalErr(&v226v2, bs226, h, t, "dec-map-v226-p-nil")
- testDeepEqualErr(v226v1, v226v2, t, "equal-map-v226-p-nil")
- // ...
- if v == nil {
- v226v2 = nil
- } else {
- v226v2 = make(map[int16]int8, len(v))
- } // reset map
- var v226v3, v226v4 typMapMapInt16Int8
- v226v3 = typMapMapInt16Int8(v226v1)
- v226v4 = typMapMapInt16Int8(v226v2)
- bs226 = testMarshalErr(v226v3, h, t, "enc-map-v226-custom")
- testUnmarshalErr(v226v4, bs226, h, t, "dec-map-v226-p-len")
- testDeepEqualErr(v226v3, v226v4, t, "equal-map-v226-p-len")
- }
- for _, v := range []map[int16]int16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v227: %v\n", v)
- var v227v1, v227v2 map[int16]int16
- v227v1 = v
- bs227 := testMarshalErr(v227v1, h, t, "enc-map-v227")
- if v == nil {
- v227v2 = nil
- } else {
- v227v2 = make(map[int16]int16, len(v))
- } // reset map
- testUnmarshalErr(v227v2, bs227, h, t, "dec-map-v227")
- testDeepEqualErr(v227v1, v227v2, t, "equal-map-v227")
- if v == nil {
- v227v2 = nil
- } else {
- v227v2 = make(map[int16]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v227v2), bs227, h, t, "dec-map-v227-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v227v1, v227v2, t, "equal-map-v227-noaddr")
- if v == nil {
- v227v2 = nil
- } else {
- v227v2 = make(map[int16]int16, len(v))
- } // reset map
- testUnmarshalErr(&v227v2, bs227, h, t, "dec-map-v227-p-len")
- testDeepEqualErr(v227v1, v227v2, t, "equal-map-v227-p-len")
- bs227 = testMarshalErr(&v227v1, h, t, "enc-map-v227-p")
- v227v2 = nil
- testUnmarshalErr(&v227v2, bs227, h, t, "dec-map-v227-p-nil")
- testDeepEqualErr(v227v1, v227v2, t, "equal-map-v227-p-nil")
- // ...
- if v == nil {
- v227v2 = nil
- } else {
- v227v2 = make(map[int16]int16, len(v))
- } // reset map
- var v227v3, v227v4 typMapMapInt16Int16
- v227v3 = typMapMapInt16Int16(v227v1)
- v227v4 = typMapMapInt16Int16(v227v2)
- bs227 = testMarshalErr(v227v3, h, t, "enc-map-v227-custom")
- testUnmarshalErr(v227v4, bs227, h, t, "dec-map-v227-p-len")
- testDeepEqualErr(v227v3, v227v4, t, "equal-map-v227-p-len")
- }
- for _, v := range []map[int16]int32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v228: %v\n", v)
- var v228v1, v228v2 map[int16]int32
- v228v1 = v
- bs228 := testMarshalErr(v228v1, h, t, "enc-map-v228")
- if v == nil {
- v228v2 = nil
- } else {
- v228v2 = make(map[int16]int32, len(v))
- } // reset map
- testUnmarshalErr(v228v2, bs228, h, t, "dec-map-v228")
- testDeepEqualErr(v228v1, v228v2, t, "equal-map-v228")
- if v == nil {
- v228v2 = nil
- } else {
- v228v2 = make(map[int16]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v228v2), bs228, h, t, "dec-map-v228-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v228v1, v228v2, t, "equal-map-v228-noaddr")
- if v == nil {
- v228v2 = nil
- } else {
- v228v2 = make(map[int16]int32, len(v))
- } // reset map
- testUnmarshalErr(&v228v2, bs228, h, t, "dec-map-v228-p-len")
- testDeepEqualErr(v228v1, v228v2, t, "equal-map-v228-p-len")
- bs228 = testMarshalErr(&v228v1, h, t, "enc-map-v228-p")
- v228v2 = nil
- testUnmarshalErr(&v228v2, bs228, h, t, "dec-map-v228-p-nil")
- testDeepEqualErr(v228v1, v228v2, t, "equal-map-v228-p-nil")
- // ...
- if v == nil {
- v228v2 = nil
- } else {
- v228v2 = make(map[int16]int32, len(v))
- } // reset map
- var v228v3, v228v4 typMapMapInt16Int32
- v228v3 = typMapMapInt16Int32(v228v1)
- v228v4 = typMapMapInt16Int32(v228v2)
- bs228 = testMarshalErr(v228v3, h, t, "enc-map-v228-custom")
- testUnmarshalErr(v228v4, bs228, h, t, "dec-map-v228-p-len")
- testDeepEqualErr(v228v3, v228v4, t, "equal-map-v228-p-len")
- }
- for _, v := range []map[int16]int64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v229: %v\n", v)
- var v229v1, v229v2 map[int16]int64
- v229v1 = v
- bs229 := testMarshalErr(v229v1, h, t, "enc-map-v229")
- if v == nil {
- v229v2 = nil
- } else {
- v229v2 = make(map[int16]int64, len(v))
- } // reset map
- testUnmarshalErr(v229v2, bs229, h, t, "dec-map-v229")
- testDeepEqualErr(v229v1, v229v2, t, "equal-map-v229")
- if v == nil {
- v229v2 = nil
- } else {
- v229v2 = make(map[int16]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v229v2), bs229, h, t, "dec-map-v229-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v229v1, v229v2, t, "equal-map-v229-noaddr")
- if v == nil {
- v229v2 = nil
- } else {
- v229v2 = make(map[int16]int64, len(v))
- } // reset map
- testUnmarshalErr(&v229v2, bs229, h, t, "dec-map-v229-p-len")
- testDeepEqualErr(v229v1, v229v2, t, "equal-map-v229-p-len")
- bs229 = testMarshalErr(&v229v1, h, t, "enc-map-v229-p")
- v229v2 = nil
- testUnmarshalErr(&v229v2, bs229, h, t, "dec-map-v229-p-nil")
- testDeepEqualErr(v229v1, v229v2, t, "equal-map-v229-p-nil")
- // ...
- if v == nil {
- v229v2 = nil
- } else {
- v229v2 = make(map[int16]int64, len(v))
- } // reset map
- var v229v3, v229v4 typMapMapInt16Int64
- v229v3 = typMapMapInt16Int64(v229v1)
- v229v4 = typMapMapInt16Int64(v229v2)
- bs229 = testMarshalErr(v229v3, h, t, "enc-map-v229-custom")
- testUnmarshalErr(v229v4, bs229, h, t, "dec-map-v229-p-len")
- testDeepEqualErr(v229v3, v229v4, t, "equal-map-v229-p-len")
- }
- for _, v := range []map[int16]float32{nil, {}, {33: 0, 44: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v230: %v\n", v)
- var v230v1, v230v2 map[int16]float32
- v230v1 = v
- bs230 := testMarshalErr(v230v1, h, t, "enc-map-v230")
- if v == nil {
- v230v2 = nil
- } else {
- v230v2 = make(map[int16]float32, len(v))
- } // reset map
- testUnmarshalErr(v230v2, bs230, h, t, "dec-map-v230")
- testDeepEqualErr(v230v1, v230v2, t, "equal-map-v230")
- if v == nil {
- v230v2 = nil
- } else {
- v230v2 = make(map[int16]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v230v2), bs230, h, t, "dec-map-v230-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v230v1, v230v2, t, "equal-map-v230-noaddr")
- if v == nil {
- v230v2 = nil
- } else {
- v230v2 = make(map[int16]float32, len(v))
- } // reset map
- testUnmarshalErr(&v230v2, bs230, h, t, "dec-map-v230-p-len")
- testDeepEqualErr(v230v1, v230v2, t, "equal-map-v230-p-len")
- bs230 = testMarshalErr(&v230v1, h, t, "enc-map-v230-p")
- v230v2 = nil
- testUnmarshalErr(&v230v2, bs230, h, t, "dec-map-v230-p-nil")
- testDeepEqualErr(v230v1, v230v2, t, "equal-map-v230-p-nil")
- // ...
- if v == nil {
- v230v2 = nil
- } else {
- v230v2 = make(map[int16]float32, len(v))
- } // reset map
- var v230v3, v230v4 typMapMapInt16Float32
- v230v3 = typMapMapInt16Float32(v230v1)
- v230v4 = typMapMapInt16Float32(v230v2)
- bs230 = testMarshalErr(v230v3, h, t, "enc-map-v230-custom")
- testUnmarshalErr(v230v4, bs230, h, t, "dec-map-v230-p-len")
- testDeepEqualErr(v230v3, v230v4, t, "equal-map-v230-p-len")
- }
- for _, v := range []map[int16]float64{nil, {}, {33: 0, 44: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v231: %v\n", v)
- var v231v1, v231v2 map[int16]float64
- v231v1 = v
- bs231 := testMarshalErr(v231v1, h, t, "enc-map-v231")
- if v == nil {
- v231v2 = nil
- } else {
- v231v2 = make(map[int16]float64, len(v))
- } // reset map
- testUnmarshalErr(v231v2, bs231, h, t, "dec-map-v231")
- testDeepEqualErr(v231v1, v231v2, t, "equal-map-v231")
- if v == nil {
- v231v2 = nil
- } else {
- v231v2 = make(map[int16]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v231v2), bs231, h, t, "dec-map-v231-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v231v1, v231v2, t, "equal-map-v231-noaddr")
- if v == nil {
- v231v2 = nil
- } else {
- v231v2 = make(map[int16]float64, len(v))
- } // reset map
- testUnmarshalErr(&v231v2, bs231, h, t, "dec-map-v231-p-len")
- testDeepEqualErr(v231v1, v231v2, t, "equal-map-v231-p-len")
- bs231 = testMarshalErr(&v231v1, h, t, "enc-map-v231-p")
- v231v2 = nil
- testUnmarshalErr(&v231v2, bs231, h, t, "dec-map-v231-p-nil")
- testDeepEqualErr(v231v1, v231v2, t, "equal-map-v231-p-nil")
- // ...
- if v == nil {
- v231v2 = nil
- } else {
- v231v2 = make(map[int16]float64, len(v))
- } // reset map
- var v231v3, v231v4 typMapMapInt16Float64
- v231v3 = typMapMapInt16Float64(v231v1)
- v231v4 = typMapMapInt16Float64(v231v2)
- bs231 = testMarshalErr(v231v3, h, t, "enc-map-v231-custom")
- testUnmarshalErr(v231v4, bs231, h, t, "dec-map-v231-p-len")
- testDeepEqualErr(v231v3, v231v4, t, "equal-map-v231-p-len")
- }
- for _, v := range []map[int16]bool{nil, {}, {33: false, 44: true}} {
- // fmt.Printf(">>>> running mammoth map v232: %v\n", v)
- var v232v1, v232v2 map[int16]bool
- v232v1 = v
- bs232 := testMarshalErr(v232v1, h, t, "enc-map-v232")
- if v == nil {
- v232v2 = nil
- } else {
- v232v2 = make(map[int16]bool, len(v))
- } // reset map
- testUnmarshalErr(v232v2, bs232, h, t, "dec-map-v232")
- testDeepEqualErr(v232v1, v232v2, t, "equal-map-v232")
- if v == nil {
- v232v2 = nil
- } else {
- v232v2 = make(map[int16]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v232v2), bs232, h, t, "dec-map-v232-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v232v1, v232v2, t, "equal-map-v232-noaddr")
- if v == nil {
- v232v2 = nil
- } else {
- v232v2 = make(map[int16]bool, len(v))
- } // reset map
- testUnmarshalErr(&v232v2, bs232, h, t, "dec-map-v232-p-len")
- testDeepEqualErr(v232v1, v232v2, t, "equal-map-v232-p-len")
- bs232 = testMarshalErr(&v232v1, h, t, "enc-map-v232-p")
- v232v2 = nil
- testUnmarshalErr(&v232v2, bs232, h, t, "dec-map-v232-p-nil")
- testDeepEqualErr(v232v1, v232v2, t, "equal-map-v232-p-nil")
- // ...
- if v == nil {
- v232v2 = nil
- } else {
- v232v2 = make(map[int16]bool, len(v))
- } // reset map
- var v232v3, v232v4 typMapMapInt16Bool
- v232v3 = typMapMapInt16Bool(v232v1)
- v232v4 = typMapMapInt16Bool(v232v2)
- bs232 = testMarshalErr(v232v3, h, t, "enc-map-v232-custom")
- testUnmarshalErr(v232v4, bs232, h, t, "dec-map-v232-p-len")
- testDeepEqualErr(v232v3, v232v4, t, "equal-map-v232-p-len")
- }
- for _, v := range []map[int32]interface{}{nil, {}, {33: nil, 44: "string-is-an-interface"}} {
- // fmt.Printf(">>>> running mammoth map v235: %v\n", v)
- var v235v1, v235v2 map[int32]interface{}
- v235v1 = v
- bs235 := testMarshalErr(v235v1, h, t, "enc-map-v235")
- if v == nil {
- v235v2 = nil
- } else {
- v235v2 = make(map[int32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v235v2, bs235, h, t, "dec-map-v235")
- testDeepEqualErr(v235v1, v235v2, t, "equal-map-v235")
- if v == nil {
- v235v2 = nil
- } else {
- v235v2 = make(map[int32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v235v2), bs235, h, t, "dec-map-v235-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v235v1, v235v2, t, "equal-map-v235-noaddr")
- if v == nil {
- v235v2 = nil
- } else {
- v235v2 = make(map[int32]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v235v2, bs235, h, t, "dec-map-v235-p-len")
- testDeepEqualErr(v235v1, v235v2, t, "equal-map-v235-p-len")
- bs235 = testMarshalErr(&v235v1, h, t, "enc-map-v235-p")
- v235v2 = nil
- testUnmarshalErr(&v235v2, bs235, h, t, "dec-map-v235-p-nil")
- testDeepEqualErr(v235v1, v235v2, t, "equal-map-v235-p-nil")
- // ...
- if v == nil {
- v235v2 = nil
- } else {
- v235v2 = make(map[int32]interface{}, len(v))
- } // reset map
- var v235v3, v235v4 typMapMapInt32Intf
- v235v3 = typMapMapInt32Intf(v235v1)
- v235v4 = typMapMapInt32Intf(v235v2)
- bs235 = testMarshalErr(v235v3, h, t, "enc-map-v235-custom")
- testUnmarshalErr(v235v4, bs235, h, t, "dec-map-v235-p-len")
- testDeepEqualErr(v235v3, v235v4, t, "equal-map-v235-p-len")
- }
- for _, v := range []map[int32]string{nil, {}, {33: "", 44: "some-string"}} {
- // fmt.Printf(">>>> running mammoth map v236: %v\n", v)
- var v236v1, v236v2 map[int32]string
- v236v1 = v
- bs236 := testMarshalErr(v236v1, h, t, "enc-map-v236")
- if v == nil {
- v236v2 = nil
- } else {
- v236v2 = make(map[int32]string, len(v))
- } // reset map
- testUnmarshalErr(v236v2, bs236, h, t, "dec-map-v236")
- testDeepEqualErr(v236v1, v236v2, t, "equal-map-v236")
- if v == nil {
- v236v2 = nil
- } else {
- v236v2 = make(map[int32]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v236v2), bs236, h, t, "dec-map-v236-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v236v1, v236v2, t, "equal-map-v236-noaddr")
- if v == nil {
- v236v2 = nil
- } else {
- v236v2 = make(map[int32]string, len(v))
- } // reset map
- testUnmarshalErr(&v236v2, bs236, h, t, "dec-map-v236-p-len")
- testDeepEqualErr(v236v1, v236v2, t, "equal-map-v236-p-len")
- bs236 = testMarshalErr(&v236v1, h, t, "enc-map-v236-p")
- v236v2 = nil
- testUnmarshalErr(&v236v2, bs236, h, t, "dec-map-v236-p-nil")
- testDeepEqualErr(v236v1, v236v2, t, "equal-map-v236-p-nil")
- // ...
- if v == nil {
- v236v2 = nil
- } else {
- v236v2 = make(map[int32]string, len(v))
- } // reset map
- var v236v3, v236v4 typMapMapInt32String
- v236v3 = typMapMapInt32String(v236v1)
- v236v4 = typMapMapInt32String(v236v2)
- bs236 = testMarshalErr(v236v3, h, t, "enc-map-v236-custom")
- testUnmarshalErr(v236v4, bs236, h, t, "dec-map-v236-p-len")
- testDeepEqualErr(v236v3, v236v4, t, "equal-map-v236-p-len")
- }
- for _, v := range []map[int32]uint{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v237: %v\n", v)
- var v237v1, v237v2 map[int32]uint
- v237v1 = v
- bs237 := testMarshalErr(v237v1, h, t, "enc-map-v237")
- if v == nil {
- v237v2 = nil
- } else {
- v237v2 = make(map[int32]uint, len(v))
- } // reset map
- testUnmarshalErr(v237v2, bs237, h, t, "dec-map-v237")
- testDeepEqualErr(v237v1, v237v2, t, "equal-map-v237")
- if v == nil {
- v237v2 = nil
- } else {
- v237v2 = make(map[int32]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v237v2), bs237, h, t, "dec-map-v237-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v237v1, v237v2, t, "equal-map-v237-noaddr")
- if v == nil {
- v237v2 = nil
- } else {
- v237v2 = make(map[int32]uint, len(v))
- } // reset map
- testUnmarshalErr(&v237v2, bs237, h, t, "dec-map-v237-p-len")
- testDeepEqualErr(v237v1, v237v2, t, "equal-map-v237-p-len")
- bs237 = testMarshalErr(&v237v1, h, t, "enc-map-v237-p")
- v237v2 = nil
- testUnmarshalErr(&v237v2, bs237, h, t, "dec-map-v237-p-nil")
- testDeepEqualErr(v237v1, v237v2, t, "equal-map-v237-p-nil")
- // ...
- if v == nil {
- v237v2 = nil
- } else {
- v237v2 = make(map[int32]uint, len(v))
- } // reset map
- var v237v3, v237v4 typMapMapInt32Uint
- v237v3 = typMapMapInt32Uint(v237v1)
- v237v4 = typMapMapInt32Uint(v237v2)
- bs237 = testMarshalErr(v237v3, h, t, "enc-map-v237-custom")
- testUnmarshalErr(v237v4, bs237, h, t, "dec-map-v237-p-len")
- testDeepEqualErr(v237v3, v237v4, t, "equal-map-v237-p-len")
- }
- for _, v := range []map[int32]uint8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v238: %v\n", v)
- var v238v1, v238v2 map[int32]uint8
- v238v1 = v
- bs238 := testMarshalErr(v238v1, h, t, "enc-map-v238")
- if v == nil {
- v238v2 = nil
- } else {
- v238v2 = make(map[int32]uint8, len(v))
- } // reset map
- testUnmarshalErr(v238v2, bs238, h, t, "dec-map-v238")
- testDeepEqualErr(v238v1, v238v2, t, "equal-map-v238")
- if v == nil {
- v238v2 = nil
- } else {
- v238v2 = make(map[int32]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v238v2), bs238, h, t, "dec-map-v238-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v238v1, v238v2, t, "equal-map-v238-noaddr")
- if v == nil {
- v238v2 = nil
- } else {
- v238v2 = make(map[int32]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v238v2, bs238, h, t, "dec-map-v238-p-len")
- testDeepEqualErr(v238v1, v238v2, t, "equal-map-v238-p-len")
- bs238 = testMarshalErr(&v238v1, h, t, "enc-map-v238-p")
- v238v2 = nil
- testUnmarshalErr(&v238v2, bs238, h, t, "dec-map-v238-p-nil")
- testDeepEqualErr(v238v1, v238v2, t, "equal-map-v238-p-nil")
- // ...
- if v == nil {
- v238v2 = nil
- } else {
- v238v2 = make(map[int32]uint8, len(v))
- } // reset map
- var v238v3, v238v4 typMapMapInt32Uint8
- v238v3 = typMapMapInt32Uint8(v238v1)
- v238v4 = typMapMapInt32Uint8(v238v2)
- bs238 = testMarshalErr(v238v3, h, t, "enc-map-v238-custom")
- testUnmarshalErr(v238v4, bs238, h, t, "dec-map-v238-p-len")
- testDeepEqualErr(v238v3, v238v4, t, "equal-map-v238-p-len")
- }
- for _, v := range []map[int32]uint16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v239: %v\n", v)
- var v239v1, v239v2 map[int32]uint16
- v239v1 = v
- bs239 := testMarshalErr(v239v1, h, t, "enc-map-v239")
- if v == nil {
- v239v2 = nil
- } else {
- v239v2 = make(map[int32]uint16, len(v))
- } // reset map
- testUnmarshalErr(v239v2, bs239, h, t, "dec-map-v239")
- testDeepEqualErr(v239v1, v239v2, t, "equal-map-v239")
- if v == nil {
- v239v2 = nil
- } else {
- v239v2 = make(map[int32]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v239v2), bs239, h, t, "dec-map-v239-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v239v1, v239v2, t, "equal-map-v239-noaddr")
- if v == nil {
- v239v2 = nil
- } else {
- v239v2 = make(map[int32]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v239v2, bs239, h, t, "dec-map-v239-p-len")
- testDeepEqualErr(v239v1, v239v2, t, "equal-map-v239-p-len")
- bs239 = testMarshalErr(&v239v1, h, t, "enc-map-v239-p")
- v239v2 = nil
- testUnmarshalErr(&v239v2, bs239, h, t, "dec-map-v239-p-nil")
- testDeepEqualErr(v239v1, v239v2, t, "equal-map-v239-p-nil")
- // ...
- if v == nil {
- v239v2 = nil
- } else {
- v239v2 = make(map[int32]uint16, len(v))
- } // reset map
- var v239v3, v239v4 typMapMapInt32Uint16
- v239v3 = typMapMapInt32Uint16(v239v1)
- v239v4 = typMapMapInt32Uint16(v239v2)
- bs239 = testMarshalErr(v239v3, h, t, "enc-map-v239-custom")
- testUnmarshalErr(v239v4, bs239, h, t, "dec-map-v239-p-len")
- testDeepEqualErr(v239v3, v239v4, t, "equal-map-v239-p-len")
- }
- for _, v := range []map[int32]uint32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v240: %v\n", v)
- var v240v1, v240v2 map[int32]uint32
- v240v1 = v
- bs240 := testMarshalErr(v240v1, h, t, "enc-map-v240")
- if v == nil {
- v240v2 = nil
- } else {
- v240v2 = make(map[int32]uint32, len(v))
- } // reset map
- testUnmarshalErr(v240v2, bs240, h, t, "dec-map-v240")
- testDeepEqualErr(v240v1, v240v2, t, "equal-map-v240")
- if v == nil {
- v240v2 = nil
- } else {
- v240v2 = make(map[int32]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v240v2), bs240, h, t, "dec-map-v240-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v240v1, v240v2, t, "equal-map-v240-noaddr")
- if v == nil {
- v240v2 = nil
- } else {
- v240v2 = make(map[int32]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v240v2, bs240, h, t, "dec-map-v240-p-len")
- testDeepEqualErr(v240v1, v240v2, t, "equal-map-v240-p-len")
- bs240 = testMarshalErr(&v240v1, h, t, "enc-map-v240-p")
- v240v2 = nil
- testUnmarshalErr(&v240v2, bs240, h, t, "dec-map-v240-p-nil")
- testDeepEqualErr(v240v1, v240v2, t, "equal-map-v240-p-nil")
- // ...
- if v == nil {
- v240v2 = nil
- } else {
- v240v2 = make(map[int32]uint32, len(v))
- } // reset map
- var v240v3, v240v4 typMapMapInt32Uint32
- v240v3 = typMapMapInt32Uint32(v240v1)
- v240v4 = typMapMapInt32Uint32(v240v2)
- bs240 = testMarshalErr(v240v3, h, t, "enc-map-v240-custom")
- testUnmarshalErr(v240v4, bs240, h, t, "dec-map-v240-p-len")
- testDeepEqualErr(v240v3, v240v4, t, "equal-map-v240-p-len")
- }
- for _, v := range []map[int32]uint64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v241: %v\n", v)
- var v241v1, v241v2 map[int32]uint64
- v241v1 = v
- bs241 := testMarshalErr(v241v1, h, t, "enc-map-v241")
- if v == nil {
- v241v2 = nil
- } else {
- v241v2 = make(map[int32]uint64, len(v))
- } // reset map
- testUnmarshalErr(v241v2, bs241, h, t, "dec-map-v241")
- testDeepEqualErr(v241v1, v241v2, t, "equal-map-v241")
- if v == nil {
- v241v2 = nil
- } else {
- v241v2 = make(map[int32]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v241v2), bs241, h, t, "dec-map-v241-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v241v1, v241v2, t, "equal-map-v241-noaddr")
- if v == nil {
- v241v2 = nil
- } else {
- v241v2 = make(map[int32]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v241v2, bs241, h, t, "dec-map-v241-p-len")
- testDeepEqualErr(v241v1, v241v2, t, "equal-map-v241-p-len")
- bs241 = testMarshalErr(&v241v1, h, t, "enc-map-v241-p")
- v241v2 = nil
- testUnmarshalErr(&v241v2, bs241, h, t, "dec-map-v241-p-nil")
- testDeepEqualErr(v241v1, v241v2, t, "equal-map-v241-p-nil")
- // ...
- if v == nil {
- v241v2 = nil
- } else {
- v241v2 = make(map[int32]uint64, len(v))
- } // reset map
- var v241v3, v241v4 typMapMapInt32Uint64
- v241v3 = typMapMapInt32Uint64(v241v1)
- v241v4 = typMapMapInt32Uint64(v241v2)
- bs241 = testMarshalErr(v241v3, h, t, "enc-map-v241-custom")
- testUnmarshalErr(v241v4, bs241, h, t, "dec-map-v241-p-len")
- testDeepEqualErr(v241v3, v241v4, t, "equal-map-v241-p-len")
- }
- for _, v := range []map[int32]uintptr{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v242: %v\n", v)
- var v242v1, v242v2 map[int32]uintptr
- v242v1 = v
- bs242 := testMarshalErr(v242v1, h, t, "enc-map-v242")
- if v == nil {
- v242v2 = nil
- } else {
- v242v2 = make(map[int32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v242v2, bs242, h, t, "dec-map-v242")
- testDeepEqualErr(v242v1, v242v2, t, "equal-map-v242")
- if v == nil {
- v242v2 = nil
- } else {
- v242v2 = make(map[int32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v242v2), bs242, h, t, "dec-map-v242-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v242v1, v242v2, t, "equal-map-v242-noaddr")
- if v == nil {
- v242v2 = nil
- } else {
- v242v2 = make(map[int32]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v242v2, bs242, h, t, "dec-map-v242-p-len")
- testDeepEqualErr(v242v1, v242v2, t, "equal-map-v242-p-len")
- bs242 = testMarshalErr(&v242v1, h, t, "enc-map-v242-p")
- v242v2 = nil
- testUnmarshalErr(&v242v2, bs242, h, t, "dec-map-v242-p-nil")
- testDeepEqualErr(v242v1, v242v2, t, "equal-map-v242-p-nil")
- // ...
- if v == nil {
- v242v2 = nil
- } else {
- v242v2 = make(map[int32]uintptr, len(v))
- } // reset map
- var v242v3, v242v4 typMapMapInt32Uintptr
- v242v3 = typMapMapInt32Uintptr(v242v1)
- v242v4 = typMapMapInt32Uintptr(v242v2)
- bs242 = testMarshalErr(v242v3, h, t, "enc-map-v242-custom")
- testUnmarshalErr(v242v4, bs242, h, t, "dec-map-v242-p-len")
- testDeepEqualErr(v242v3, v242v4, t, "equal-map-v242-p-len")
- }
- for _, v := range []map[int32]int{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v243: %v\n", v)
- var v243v1, v243v2 map[int32]int
- v243v1 = v
- bs243 := testMarshalErr(v243v1, h, t, "enc-map-v243")
- if v == nil {
- v243v2 = nil
- } else {
- v243v2 = make(map[int32]int, len(v))
- } // reset map
- testUnmarshalErr(v243v2, bs243, h, t, "dec-map-v243")
- testDeepEqualErr(v243v1, v243v2, t, "equal-map-v243")
- if v == nil {
- v243v2 = nil
- } else {
- v243v2 = make(map[int32]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v243v2), bs243, h, t, "dec-map-v243-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v243v1, v243v2, t, "equal-map-v243-noaddr")
- if v == nil {
- v243v2 = nil
- } else {
- v243v2 = make(map[int32]int, len(v))
- } // reset map
- testUnmarshalErr(&v243v2, bs243, h, t, "dec-map-v243-p-len")
- testDeepEqualErr(v243v1, v243v2, t, "equal-map-v243-p-len")
- bs243 = testMarshalErr(&v243v1, h, t, "enc-map-v243-p")
- v243v2 = nil
- testUnmarshalErr(&v243v2, bs243, h, t, "dec-map-v243-p-nil")
- testDeepEqualErr(v243v1, v243v2, t, "equal-map-v243-p-nil")
- // ...
- if v == nil {
- v243v2 = nil
- } else {
- v243v2 = make(map[int32]int, len(v))
- } // reset map
- var v243v3, v243v4 typMapMapInt32Int
- v243v3 = typMapMapInt32Int(v243v1)
- v243v4 = typMapMapInt32Int(v243v2)
- bs243 = testMarshalErr(v243v3, h, t, "enc-map-v243-custom")
- testUnmarshalErr(v243v4, bs243, h, t, "dec-map-v243-p-len")
- testDeepEqualErr(v243v3, v243v4, t, "equal-map-v243-p-len")
- }
- for _, v := range []map[int32]int8{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v244: %v\n", v)
- var v244v1, v244v2 map[int32]int8
- v244v1 = v
- bs244 := testMarshalErr(v244v1, h, t, "enc-map-v244")
- if v == nil {
- v244v2 = nil
- } else {
- v244v2 = make(map[int32]int8, len(v))
- } // reset map
- testUnmarshalErr(v244v2, bs244, h, t, "dec-map-v244")
- testDeepEqualErr(v244v1, v244v2, t, "equal-map-v244")
- if v == nil {
- v244v2 = nil
- } else {
- v244v2 = make(map[int32]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v244v2), bs244, h, t, "dec-map-v244-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v244v1, v244v2, t, "equal-map-v244-noaddr")
- if v == nil {
- v244v2 = nil
- } else {
- v244v2 = make(map[int32]int8, len(v))
- } // reset map
- testUnmarshalErr(&v244v2, bs244, h, t, "dec-map-v244-p-len")
- testDeepEqualErr(v244v1, v244v2, t, "equal-map-v244-p-len")
- bs244 = testMarshalErr(&v244v1, h, t, "enc-map-v244-p")
- v244v2 = nil
- testUnmarshalErr(&v244v2, bs244, h, t, "dec-map-v244-p-nil")
- testDeepEqualErr(v244v1, v244v2, t, "equal-map-v244-p-nil")
- // ...
- if v == nil {
- v244v2 = nil
- } else {
- v244v2 = make(map[int32]int8, len(v))
- } // reset map
- var v244v3, v244v4 typMapMapInt32Int8
- v244v3 = typMapMapInt32Int8(v244v1)
- v244v4 = typMapMapInt32Int8(v244v2)
- bs244 = testMarshalErr(v244v3, h, t, "enc-map-v244-custom")
- testUnmarshalErr(v244v4, bs244, h, t, "dec-map-v244-p-len")
- testDeepEqualErr(v244v3, v244v4, t, "equal-map-v244-p-len")
- }
- for _, v := range []map[int32]int16{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v245: %v\n", v)
- var v245v1, v245v2 map[int32]int16
- v245v1 = v
- bs245 := testMarshalErr(v245v1, h, t, "enc-map-v245")
- if v == nil {
- v245v2 = nil
- } else {
- v245v2 = make(map[int32]int16, len(v))
- } // reset map
- testUnmarshalErr(v245v2, bs245, h, t, "dec-map-v245")
- testDeepEqualErr(v245v1, v245v2, t, "equal-map-v245")
- if v == nil {
- v245v2 = nil
- } else {
- v245v2 = make(map[int32]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v245v2), bs245, h, t, "dec-map-v245-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v245v1, v245v2, t, "equal-map-v245-noaddr")
- if v == nil {
- v245v2 = nil
- } else {
- v245v2 = make(map[int32]int16, len(v))
- } // reset map
- testUnmarshalErr(&v245v2, bs245, h, t, "dec-map-v245-p-len")
- testDeepEqualErr(v245v1, v245v2, t, "equal-map-v245-p-len")
- bs245 = testMarshalErr(&v245v1, h, t, "enc-map-v245-p")
- v245v2 = nil
- testUnmarshalErr(&v245v2, bs245, h, t, "dec-map-v245-p-nil")
- testDeepEqualErr(v245v1, v245v2, t, "equal-map-v245-p-nil")
- // ...
- if v == nil {
- v245v2 = nil
- } else {
- v245v2 = make(map[int32]int16, len(v))
- } // reset map
- var v245v3, v245v4 typMapMapInt32Int16
- v245v3 = typMapMapInt32Int16(v245v1)
- v245v4 = typMapMapInt32Int16(v245v2)
- bs245 = testMarshalErr(v245v3, h, t, "enc-map-v245-custom")
- testUnmarshalErr(v245v4, bs245, h, t, "dec-map-v245-p-len")
- testDeepEqualErr(v245v3, v245v4, t, "equal-map-v245-p-len")
- }
- for _, v := range []map[int32]int32{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v246: %v\n", v)
- var v246v1, v246v2 map[int32]int32
- v246v1 = v
- bs246 := testMarshalErr(v246v1, h, t, "enc-map-v246")
- if v == nil {
- v246v2 = nil
- } else {
- v246v2 = make(map[int32]int32, len(v))
- } // reset map
- testUnmarshalErr(v246v2, bs246, h, t, "dec-map-v246")
- testDeepEqualErr(v246v1, v246v2, t, "equal-map-v246")
- if v == nil {
- v246v2 = nil
- } else {
- v246v2 = make(map[int32]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v246v2), bs246, h, t, "dec-map-v246-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v246v1, v246v2, t, "equal-map-v246-noaddr")
- if v == nil {
- v246v2 = nil
- } else {
- v246v2 = make(map[int32]int32, len(v))
- } // reset map
- testUnmarshalErr(&v246v2, bs246, h, t, "dec-map-v246-p-len")
- testDeepEqualErr(v246v1, v246v2, t, "equal-map-v246-p-len")
- bs246 = testMarshalErr(&v246v1, h, t, "enc-map-v246-p")
- v246v2 = nil
- testUnmarshalErr(&v246v2, bs246, h, t, "dec-map-v246-p-nil")
- testDeepEqualErr(v246v1, v246v2, t, "equal-map-v246-p-nil")
- // ...
- if v == nil {
- v246v2 = nil
- } else {
- v246v2 = make(map[int32]int32, len(v))
- } // reset map
- var v246v3, v246v4 typMapMapInt32Int32
- v246v3 = typMapMapInt32Int32(v246v1)
- v246v4 = typMapMapInt32Int32(v246v2)
- bs246 = testMarshalErr(v246v3, h, t, "enc-map-v246-custom")
- testUnmarshalErr(v246v4, bs246, h, t, "dec-map-v246-p-len")
- testDeepEqualErr(v246v3, v246v4, t, "equal-map-v246-p-len")
- }
- for _, v := range []map[int32]int64{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v247: %v\n", v)
- var v247v1, v247v2 map[int32]int64
- v247v1 = v
- bs247 := testMarshalErr(v247v1, h, t, "enc-map-v247")
- if v == nil {
- v247v2 = nil
- } else {
- v247v2 = make(map[int32]int64, len(v))
- } // reset map
- testUnmarshalErr(v247v2, bs247, h, t, "dec-map-v247")
- testDeepEqualErr(v247v1, v247v2, t, "equal-map-v247")
- if v == nil {
- v247v2 = nil
- } else {
- v247v2 = make(map[int32]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v247v2), bs247, h, t, "dec-map-v247-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v247v1, v247v2, t, "equal-map-v247-noaddr")
- if v == nil {
- v247v2 = nil
- } else {
- v247v2 = make(map[int32]int64, len(v))
- } // reset map
- testUnmarshalErr(&v247v2, bs247, h, t, "dec-map-v247-p-len")
- testDeepEqualErr(v247v1, v247v2, t, "equal-map-v247-p-len")
- bs247 = testMarshalErr(&v247v1, h, t, "enc-map-v247-p")
- v247v2 = nil
- testUnmarshalErr(&v247v2, bs247, h, t, "dec-map-v247-p-nil")
- testDeepEqualErr(v247v1, v247v2, t, "equal-map-v247-p-nil")
- // ...
- if v == nil {
- v247v2 = nil
- } else {
- v247v2 = make(map[int32]int64, len(v))
- } // reset map
- var v247v3, v247v4 typMapMapInt32Int64
- v247v3 = typMapMapInt32Int64(v247v1)
- v247v4 = typMapMapInt32Int64(v247v2)
- bs247 = testMarshalErr(v247v3, h, t, "enc-map-v247-custom")
- testUnmarshalErr(v247v4, bs247, h, t, "dec-map-v247-p-len")
- testDeepEqualErr(v247v3, v247v4, t, "equal-map-v247-p-len")
- }
- for _, v := range []map[int32]float32{nil, {}, {44: 0, 33: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v248: %v\n", v)
- var v248v1, v248v2 map[int32]float32
- v248v1 = v
- bs248 := testMarshalErr(v248v1, h, t, "enc-map-v248")
- if v == nil {
- v248v2 = nil
- } else {
- v248v2 = make(map[int32]float32, len(v))
- } // reset map
- testUnmarshalErr(v248v2, bs248, h, t, "dec-map-v248")
- testDeepEqualErr(v248v1, v248v2, t, "equal-map-v248")
- if v == nil {
- v248v2 = nil
- } else {
- v248v2 = make(map[int32]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v248v2), bs248, h, t, "dec-map-v248-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v248v1, v248v2, t, "equal-map-v248-noaddr")
- if v == nil {
- v248v2 = nil
- } else {
- v248v2 = make(map[int32]float32, len(v))
- } // reset map
- testUnmarshalErr(&v248v2, bs248, h, t, "dec-map-v248-p-len")
- testDeepEqualErr(v248v1, v248v2, t, "equal-map-v248-p-len")
- bs248 = testMarshalErr(&v248v1, h, t, "enc-map-v248-p")
- v248v2 = nil
- testUnmarshalErr(&v248v2, bs248, h, t, "dec-map-v248-p-nil")
- testDeepEqualErr(v248v1, v248v2, t, "equal-map-v248-p-nil")
- // ...
- if v == nil {
- v248v2 = nil
- } else {
- v248v2 = make(map[int32]float32, len(v))
- } // reset map
- var v248v3, v248v4 typMapMapInt32Float32
- v248v3 = typMapMapInt32Float32(v248v1)
- v248v4 = typMapMapInt32Float32(v248v2)
- bs248 = testMarshalErr(v248v3, h, t, "enc-map-v248-custom")
- testUnmarshalErr(v248v4, bs248, h, t, "dec-map-v248-p-len")
- testDeepEqualErr(v248v3, v248v4, t, "equal-map-v248-p-len")
- }
- for _, v := range []map[int32]float64{nil, {}, {44: 0, 33: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v249: %v\n", v)
- var v249v1, v249v2 map[int32]float64
- v249v1 = v
- bs249 := testMarshalErr(v249v1, h, t, "enc-map-v249")
- if v == nil {
- v249v2 = nil
- } else {
- v249v2 = make(map[int32]float64, len(v))
- } // reset map
- testUnmarshalErr(v249v2, bs249, h, t, "dec-map-v249")
- testDeepEqualErr(v249v1, v249v2, t, "equal-map-v249")
- if v == nil {
- v249v2 = nil
- } else {
- v249v2 = make(map[int32]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v249v2), bs249, h, t, "dec-map-v249-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v249v1, v249v2, t, "equal-map-v249-noaddr")
- if v == nil {
- v249v2 = nil
- } else {
- v249v2 = make(map[int32]float64, len(v))
- } // reset map
- testUnmarshalErr(&v249v2, bs249, h, t, "dec-map-v249-p-len")
- testDeepEqualErr(v249v1, v249v2, t, "equal-map-v249-p-len")
- bs249 = testMarshalErr(&v249v1, h, t, "enc-map-v249-p")
- v249v2 = nil
- testUnmarshalErr(&v249v2, bs249, h, t, "dec-map-v249-p-nil")
- testDeepEqualErr(v249v1, v249v2, t, "equal-map-v249-p-nil")
- // ...
- if v == nil {
- v249v2 = nil
- } else {
- v249v2 = make(map[int32]float64, len(v))
- } // reset map
- var v249v3, v249v4 typMapMapInt32Float64
- v249v3 = typMapMapInt32Float64(v249v1)
- v249v4 = typMapMapInt32Float64(v249v2)
- bs249 = testMarshalErr(v249v3, h, t, "enc-map-v249-custom")
- testUnmarshalErr(v249v4, bs249, h, t, "dec-map-v249-p-len")
- testDeepEqualErr(v249v3, v249v4, t, "equal-map-v249-p-len")
- }
- for _, v := range []map[int32]bool{nil, {}, {44: false, 33: true}} {
- // fmt.Printf(">>>> running mammoth map v250: %v\n", v)
- var v250v1, v250v2 map[int32]bool
- v250v1 = v
- bs250 := testMarshalErr(v250v1, h, t, "enc-map-v250")
- if v == nil {
- v250v2 = nil
- } else {
- v250v2 = make(map[int32]bool, len(v))
- } // reset map
- testUnmarshalErr(v250v2, bs250, h, t, "dec-map-v250")
- testDeepEqualErr(v250v1, v250v2, t, "equal-map-v250")
- if v == nil {
- v250v2 = nil
- } else {
- v250v2 = make(map[int32]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v250v2), bs250, h, t, "dec-map-v250-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v250v1, v250v2, t, "equal-map-v250-noaddr")
- if v == nil {
- v250v2 = nil
- } else {
- v250v2 = make(map[int32]bool, len(v))
- } // reset map
- testUnmarshalErr(&v250v2, bs250, h, t, "dec-map-v250-p-len")
- testDeepEqualErr(v250v1, v250v2, t, "equal-map-v250-p-len")
- bs250 = testMarshalErr(&v250v1, h, t, "enc-map-v250-p")
- v250v2 = nil
- testUnmarshalErr(&v250v2, bs250, h, t, "dec-map-v250-p-nil")
- testDeepEqualErr(v250v1, v250v2, t, "equal-map-v250-p-nil")
- // ...
- if v == nil {
- v250v2 = nil
- } else {
- v250v2 = make(map[int32]bool, len(v))
- } // reset map
- var v250v3, v250v4 typMapMapInt32Bool
- v250v3 = typMapMapInt32Bool(v250v1)
- v250v4 = typMapMapInt32Bool(v250v2)
- bs250 = testMarshalErr(v250v3, h, t, "enc-map-v250-custom")
- testUnmarshalErr(v250v4, bs250, h, t, "dec-map-v250-p-len")
- testDeepEqualErr(v250v3, v250v4, t, "equal-map-v250-p-len")
- }
- for _, v := range []map[int64]interface{}{nil, {}, {44: nil, 33: "string-is-an-interface-2"}} {
- // fmt.Printf(">>>> running mammoth map v253: %v\n", v)
- var v253v1, v253v2 map[int64]interface{}
- v253v1 = v
- bs253 := testMarshalErr(v253v1, h, t, "enc-map-v253")
- if v == nil {
- v253v2 = nil
- } else {
- v253v2 = make(map[int64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v253v2, bs253, h, t, "dec-map-v253")
- testDeepEqualErr(v253v1, v253v2, t, "equal-map-v253")
- if v == nil {
- v253v2 = nil
- } else {
- v253v2 = make(map[int64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v253v2), bs253, h, t, "dec-map-v253-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v253v1, v253v2, t, "equal-map-v253-noaddr")
- if v == nil {
- v253v2 = nil
- } else {
- v253v2 = make(map[int64]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v253v2, bs253, h, t, "dec-map-v253-p-len")
- testDeepEqualErr(v253v1, v253v2, t, "equal-map-v253-p-len")
- bs253 = testMarshalErr(&v253v1, h, t, "enc-map-v253-p")
- v253v2 = nil
- testUnmarshalErr(&v253v2, bs253, h, t, "dec-map-v253-p-nil")
- testDeepEqualErr(v253v1, v253v2, t, "equal-map-v253-p-nil")
- // ...
- if v == nil {
- v253v2 = nil
- } else {
- v253v2 = make(map[int64]interface{}, len(v))
- } // reset map
- var v253v3, v253v4 typMapMapInt64Intf
- v253v3 = typMapMapInt64Intf(v253v1)
- v253v4 = typMapMapInt64Intf(v253v2)
- bs253 = testMarshalErr(v253v3, h, t, "enc-map-v253-custom")
- testUnmarshalErr(v253v4, bs253, h, t, "dec-map-v253-p-len")
- testDeepEqualErr(v253v3, v253v4, t, "equal-map-v253-p-len")
- }
- for _, v := range []map[int64]string{nil, {}, {44: "", 33: "some-string-2"}} {
- // fmt.Printf(">>>> running mammoth map v254: %v\n", v)
- var v254v1, v254v2 map[int64]string
- v254v1 = v
- bs254 := testMarshalErr(v254v1, h, t, "enc-map-v254")
- if v == nil {
- v254v2 = nil
- } else {
- v254v2 = make(map[int64]string, len(v))
- } // reset map
- testUnmarshalErr(v254v2, bs254, h, t, "dec-map-v254")
- testDeepEqualErr(v254v1, v254v2, t, "equal-map-v254")
- if v == nil {
- v254v2 = nil
- } else {
- v254v2 = make(map[int64]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v254v2), bs254, h, t, "dec-map-v254-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v254v1, v254v2, t, "equal-map-v254-noaddr")
- if v == nil {
- v254v2 = nil
- } else {
- v254v2 = make(map[int64]string, len(v))
- } // reset map
- testUnmarshalErr(&v254v2, bs254, h, t, "dec-map-v254-p-len")
- testDeepEqualErr(v254v1, v254v2, t, "equal-map-v254-p-len")
- bs254 = testMarshalErr(&v254v1, h, t, "enc-map-v254-p")
- v254v2 = nil
- testUnmarshalErr(&v254v2, bs254, h, t, "dec-map-v254-p-nil")
- testDeepEqualErr(v254v1, v254v2, t, "equal-map-v254-p-nil")
- // ...
- if v == nil {
- v254v2 = nil
- } else {
- v254v2 = make(map[int64]string, len(v))
- } // reset map
- var v254v3, v254v4 typMapMapInt64String
- v254v3 = typMapMapInt64String(v254v1)
- v254v4 = typMapMapInt64String(v254v2)
- bs254 = testMarshalErr(v254v3, h, t, "enc-map-v254-custom")
- testUnmarshalErr(v254v4, bs254, h, t, "dec-map-v254-p-len")
- testDeepEqualErr(v254v3, v254v4, t, "equal-map-v254-p-len")
- }
- for _, v := range []map[int64]uint{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v255: %v\n", v)
- var v255v1, v255v2 map[int64]uint
- v255v1 = v
- bs255 := testMarshalErr(v255v1, h, t, "enc-map-v255")
- if v == nil {
- v255v2 = nil
- } else {
- v255v2 = make(map[int64]uint, len(v))
- } // reset map
- testUnmarshalErr(v255v2, bs255, h, t, "dec-map-v255")
- testDeepEqualErr(v255v1, v255v2, t, "equal-map-v255")
- if v == nil {
- v255v2 = nil
- } else {
- v255v2 = make(map[int64]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v255v2), bs255, h, t, "dec-map-v255-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v255v1, v255v2, t, "equal-map-v255-noaddr")
- if v == nil {
- v255v2 = nil
- } else {
- v255v2 = make(map[int64]uint, len(v))
- } // reset map
- testUnmarshalErr(&v255v2, bs255, h, t, "dec-map-v255-p-len")
- testDeepEqualErr(v255v1, v255v2, t, "equal-map-v255-p-len")
- bs255 = testMarshalErr(&v255v1, h, t, "enc-map-v255-p")
- v255v2 = nil
- testUnmarshalErr(&v255v2, bs255, h, t, "dec-map-v255-p-nil")
- testDeepEqualErr(v255v1, v255v2, t, "equal-map-v255-p-nil")
- // ...
- if v == nil {
- v255v2 = nil
- } else {
- v255v2 = make(map[int64]uint, len(v))
- } // reset map
- var v255v3, v255v4 typMapMapInt64Uint
- v255v3 = typMapMapInt64Uint(v255v1)
- v255v4 = typMapMapInt64Uint(v255v2)
- bs255 = testMarshalErr(v255v3, h, t, "enc-map-v255-custom")
- testUnmarshalErr(v255v4, bs255, h, t, "dec-map-v255-p-len")
- testDeepEqualErr(v255v3, v255v4, t, "equal-map-v255-p-len")
- }
- for _, v := range []map[int64]uint8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v256: %v\n", v)
- var v256v1, v256v2 map[int64]uint8
- v256v1 = v
- bs256 := testMarshalErr(v256v1, h, t, "enc-map-v256")
- if v == nil {
- v256v2 = nil
- } else {
- v256v2 = make(map[int64]uint8, len(v))
- } // reset map
- testUnmarshalErr(v256v2, bs256, h, t, "dec-map-v256")
- testDeepEqualErr(v256v1, v256v2, t, "equal-map-v256")
- if v == nil {
- v256v2 = nil
- } else {
- v256v2 = make(map[int64]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v256v2), bs256, h, t, "dec-map-v256-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v256v1, v256v2, t, "equal-map-v256-noaddr")
- if v == nil {
- v256v2 = nil
- } else {
- v256v2 = make(map[int64]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v256v2, bs256, h, t, "dec-map-v256-p-len")
- testDeepEqualErr(v256v1, v256v2, t, "equal-map-v256-p-len")
- bs256 = testMarshalErr(&v256v1, h, t, "enc-map-v256-p")
- v256v2 = nil
- testUnmarshalErr(&v256v2, bs256, h, t, "dec-map-v256-p-nil")
- testDeepEqualErr(v256v1, v256v2, t, "equal-map-v256-p-nil")
- // ...
- if v == nil {
- v256v2 = nil
- } else {
- v256v2 = make(map[int64]uint8, len(v))
- } // reset map
- var v256v3, v256v4 typMapMapInt64Uint8
- v256v3 = typMapMapInt64Uint8(v256v1)
- v256v4 = typMapMapInt64Uint8(v256v2)
- bs256 = testMarshalErr(v256v3, h, t, "enc-map-v256-custom")
- testUnmarshalErr(v256v4, bs256, h, t, "dec-map-v256-p-len")
- testDeepEqualErr(v256v3, v256v4, t, "equal-map-v256-p-len")
- }
- for _, v := range []map[int64]uint16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v257: %v\n", v)
- var v257v1, v257v2 map[int64]uint16
- v257v1 = v
- bs257 := testMarshalErr(v257v1, h, t, "enc-map-v257")
- if v == nil {
- v257v2 = nil
- } else {
- v257v2 = make(map[int64]uint16, len(v))
- } // reset map
- testUnmarshalErr(v257v2, bs257, h, t, "dec-map-v257")
- testDeepEqualErr(v257v1, v257v2, t, "equal-map-v257")
- if v == nil {
- v257v2 = nil
- } else {
- v257v2 = make(map[int64]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v257v2), bs257, h, t, "dec-map-v257-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v257v1, v257v2, t, "equal-map-v257-noaddr")
- if v == nil {
- v257v2 = nil
- } else {
- v257v2 = make(map[int64]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v257v2, bs257, h, t, "dec-map-v257-p-len")
- testDeepEqualErr(v257v1, v257v2, t, "equal-map-v257-p-len")
- bs257 = testMarshalErr(&v257v1, h, t, "enc-map-v257-p")
- v257v2 = nil
- testUnmarshalErr(&v257v2, bs257, h, t, "dec-map-v257-p-nil")
- testDeepEqualErr(v257v1, v257v2, t, "equal-map-v257-p-nil")
- // ...
- if v == nil {
- v257v2 = nil
- } else {
- v257v2 = make(map[int64]uint16, len(v))
- } // reset map
- var v257v3, v257v4 typMapMapInt64Uint16
- v257v3 = typMapMapInt64Uint16(v257v1)
- v257v4 = typMapMapInt64Uint16(v257v2)
- bs257 = testMarshalErr(v257v3, h, t, "enc-map-v257-custom")
- testUnmarshalErr(v257v4, bs257, h, t, "dec-map-v257-p-len")
- testDeepEqualErr(v257v3, v257v4, t, "equal-map-v257-p-len")
- }
- for _, v := range []map[int64]uint32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v258: %v\n", v)
- var v258v1, v258v2 map[int64]uint32
- v258v1 = v
- bs258 := testMarshalErr(v258v1, h, t, "enc-map-v258")
- if v == nil {
- v258v2 = nil
- } else {
- v258v2 = make(map[int64]uint32, len(v))
- } // reset map
- testUnmarshalErr(v258v2, bs258, h, t, "dec-map-v258")
- testDeepEqualErr(v258v1, v258v2, t, "equal-map-v258")
- if v == nil {
- v258v2 = nil
- } else {
- v258v2 = make(map[int64]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v258v2), bs258, h, t, "dec-map-v258-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v258v1, v258v2, t, "equal-map-v258-noaddr")
- if v == nil {
- v258v2 = nil
- } else {
- v258v2 = make(map[int64]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v258v2, bs258, h, t, "dec-map-v258-p-len")
- testDeepEqualErr(v258v1, v258v2, t, "equal-map-v258-p-len")
- bs258 = testMarshalErr(&v258v1, h, t, "enc-map-v258-p")
- v258v2 = nil
- testUnmarshalErr(&v258v2, bs258, h, t, "dec-map-v258-p-nil")
- testDeepEqualErr(v258v1, v258v2, t, "equal-map-v258-p-nil")
- // ...
- if v == nil {
- v258v2 = nil
- } else {
- v258v2 = make(map[int64]uint32, len(v))
- } // reset map
- var v258v3, v258v4 typMapMapInt64Uint32
- v258v3 = typMapMapInt64Uint32(v258v1)
- v258v4 = typMapMapInt64Uint32(v258v2)
- bs258 = testMarshalErr(v258v3, h, t, "enc-map-v258-custom")
- testUnmarshalErr(v258v4, bs258, h, t, "dec-map-v258-p-len")
- testDeepEqualErr(v258v3, v258v4, t, "equal-map-v258-p-len")
- }
- for _, v := range []map[int64]uint64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v259: %v\n", v)
- var v259v1, v259v2 map[int64]uint64
- v259v1 = v
- bs259 := testMarshalErr(v259v1, h, t, "enc-map-v259")
- if v == nil {
- v259v2 = nil
- } else {
- v259v2 = make(map[int64]uint64, len(v))
- } // reset map
- testUnmarshalErr(v259v2, bs259, h, t, "dec-map-v259")
- testDeepEqualErr(v259v1, v259v2, t, "equal-map-v259")
- if v == nil {
- v259v2 = nil
- } else {
- v259v2 = make(map[int64]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v259v2), bs259, h, t, "dec-map-v259-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v259v1, v259v2, t, "equal-map-v259-noaddr")
- if v == nil {
- v259v2 = nil
- } else {
- v259v2 = make(map[int64]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v259v2, bs259, h, t, "dec-map-v259-p-len")
- testDeepEqualErr(v259v1, v259v2, t, "equal-map-v259-p-len")
- bs259 = testMarshalErr(&v259v1, h, t, "enc-map-v259-p")
- v259v2 = nil
- testUnmarshalErr(&v259v2, bs259, h, t, "dec-map-v259-p-nil")
- testDeepEqualErr(v259v1, v259v2, t, "equal-map-v259-p-nil")
- // ...
- if v == nil {
- v259v2 = nil
- } else {
- v259v2 = make(map[int64]uint64, len(v))
- } // reset map
- var v259v3, v259v4 typMapMapInt64Uint64
- v259v3 = typMapMapInt64Uint64(v259v1)
- v259v4 = typMapMapInt64Uint64(v259v2)
- bs259 = testMarshalErr(v259v3, h, t, "enc-map-v259-custom")
- testUnmarshalErr(v259v4, bs259, h, t, "dec-map-v259-p-len")
- testDeepEqualErr(v259v3, v259v4, t, "equal-map-v259-p-len")
- }
- for _, v := range []map[int64]uintptr{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v260: %v\n", v)
- var v260v1, v260v2 map[int64]uintptr
- v260v1 = v
- bs260 := testMarshalErr(v260v1, h, t, "enc-map-v260")
- if v == nil {
- v260v2 = nil
- } else {
- v260v2 = make(map[int64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v260v2, bs260, h, t, "dec-map-v260")
- testDeepEqualErr(v260v1, v260v2, t, "equal-map-v260")
- if v == nil {
- v260v2 = nil
- } else {
- v260v2 = make(map[int64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v260v2), bs260, h, t, "dec-map-v260-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v260v1, v260v2, t, "equal-map-v260-noaddr")
- if v == nil {
- v260v2 = nil
- } else {
- v260v2 = make(map[int64]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v260v2, bs260, h, t, "dec-map-v260-p-len")
- testDeepEqualErr(v260v1, v260v2, t, "equal-map-v260-p-len")
- bs260 = testMarshalErr(&v260v1, h, t, "enc-map-v260-p")
- v260v2 = nil
- testUnmarshalErr(&v260v2, bs260, h, t, "dec-map-v260-p-nil")
- testDeepEqualErr(v260v1, v260v2, t, "equal-map-v260-p-nil")
- // ...
- if v == nil {
- v260v2 = nil
- } else {
- v260v2 = make(map[int64]uintptr, len(v))
- } // reset map
- var v260v3, v260v4 typMapMapInt64Uintptr
- v260v3 = typMapMapInt64Uintptr(v260v1)
- v260v4 = typMapMapInt64Uintptr(v260v2)
- bs260 = testMarshalErr(v260v3, h, t, "enc-map-v260-custom")
- testUnmarshalErr(v260v4, bs260, h, t, "dec-map-v260-p-len")
- testDeepEqualErr(v260v3, v260v4, t, "equal-map-v260-p-len")
- }
- for _, v := range []map[int64]int{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v261: %v\n", v)
- var v261v1, v261v2 map[int64]int
- v261v1 = v
- bs261 := testMarshalErr(v261v1, h, t, "enc-map-v261")
- if v == nil {
- v261v2 = nil
- } else {
- v261v2 = make(map[int64]int, len(v))
- } // reset map
- testUnmarshalErr(v261v2, bs261, h, t, "dec-map-v261")
- testDeepEqualErr(v261v1, v261v2, t, "equal-map-v261")
- if v == nil {
- v261v2 = nil
- } else {
- v261v2 = make(map[int64]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v261v2), bs261, h, t, "dec-map-v261-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v261v1, v261v2, t, "equal-map-v261-noaddr")
- if v == nil {
- v261v2 = nil
- } else {
- v261v2 = make(map[int64]int, len(v))
- } // reset map
- testUnmarshalErr(&v261v2, bs261, h, t, "dec-map-v261-p-len")
- testDeepEqualErr(v261v1, v261v2, t, "equal-map-v261-p-len")
- bs261 = testMarshalErr(&v261v1, h, t, "enc-map-v261-p")
- v261v2 = nil
- testUnmarshalErr(&v261v2, bs261, h, t, "dec-map-v261-p-nil")
- testDeepEqualErr(v261v1, v261v2, t, "equal-map-v261-p-nil")
- // ...
- if v == nil {
- v261v2 = nil
- } else {
- v261v2 = make(map[int64]int, len(v))
- } // reset map
- var v261v3, v261v4 typMapMapInt64Int
- v261v3 = typMapMapInt64Int(v261v1)
- v261v4 = typMapMapInt64Int(v261v2)
- bs261 = testMarshalErr(v261v3, h, t, "enc-map-v261-custom")
- testUnmarshalErr(v261v4, bs261, h, t, "dec-map-v261-p-len")
- testDeepEqualErr(v261v3, v261v4, t, "equal-map-v261-p-len")
- }
- for _, v := range []map[int64]int8{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v262: %v\n", v)
- var v262v1, v262v2 map[int64]int8
- v262v1 = v
- bs262 := testMarshalErr(v262v1, h, t, "enc-map-v262")
- if v == nil {
- v262v2 = nil
- } else {
- v262v2 = make(map[int64]int8, len(v))
- } // reset map
- testUnmarshalErr(v262v2, bs262, h, t, "dec-map-v262")
- testDeepEqualErr(v262v1, v262v2, t, "equal-map-v262")
- if v == nil {
- v262v2 = nil
- } else {
- v262v2 = make(map[int64]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v262v2), bs262, h, t, "dec-map-v262-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v262v1, v262v2, t, "equal-map-v262-noaddr")
- if v == nil {
- v262v2 = nil
- } else {
- v262v2 = make(map[int64]int8, len(v))
- } // reset map
- testUnmarshalErr(&v262v2, bs262, h, t, "dec-map-v262-p-len")
- testDeepEqualErr(v262v1, v262v2, t, "equal-map-v262-p-len")
- bs262 = testMarshalErr(&v262v1, h, t, "enc-map-v262-p")
- v262v2 = nil
- testUnmarshalErr(&v262v2, bs262, h, t, "dec-map-v262-p-nil")
- testDeepEqualErr(v262v1, v262v2, t, "equal-map-v262-p-nil")
- // ...
- if v == nil {
- v262v2 = nil
- } else {
- v262v2 = make(map[int64]int8, len(v))
- } // reset map
- var v262v3, v262v4 typMapMapInt64Int8
- v262v3 = typMapMapInt64Int8(v262v1)
- v262v4 = typMapMapInt64Int8(v262v2)
- bs262 = testMarshalErr(v262v3, h, t, "enc-map-v262-custom")
- testUnmarshalErr(v262v4, bs262, h, t, "dec-map-v262-p-len")
- testDeepEqualErr(v262v3, v262v4, t, "equal-map-v262-p-len")
- }
- for _, v := range []map[int64]int16{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v263: %v\n", v)
- var v263v1, v263v2 map[int64]int16
- v263v1 = v
- bs263 := testMarshalErr(v263v1, h, t, "enc-map-v263")
- if v == nil {
- v263v2 = nil
- } else {
- v263v2 = make(map[int64]int16, len(v))
- } // reset map
- testUnmarshalErr(v263v2, bs263, h, t, "dec-map-v263")
- testDeepEqualErr(v263v1, v263v2, t, "equal-map-v263")
- if v == nil {
- v263v2 = nil
- } else {
- v263v2 = make(map[int64]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v263v2), bs263, h, t, "dec-map-v263-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v263v1, v263v2, t, "equal-map-v263-noaddr")
- if v == nil {
- v263v2 = nil
- } else {
- v263v2 = make(map[int64]int16, len(v))
- } // reset map
- testUnmarshalErr(&v263v2, bs263, h, t, "dec-map-v263-p-len")
- testDeepEqualErr(v263v1, v263v2, t, "equal-map-v263-p-len")
- bs263 = testMarshalErr(&v263v1, h, t, "enc-map-v263-p")
- v263v2 = nil
- testUnmarshalErr(&v263v2, bs263, h, t, "dec-map-v263-p-nil")
- testDeepEqualErr(v263v1, v263v2, t, "equal-map-v263-p-nil")
- // ...
- if v == nil {
- v263v2 = nil
- } else {
- v263v2 = make(map[int64]int16, len(v))
- } // reset map
- var v263v3, v263v4 typMapMapInt64Int16
- v263v3 = typMapMapInt64Int16(v263v1)
- v263v4 = typMapMapInt64Int16(v263v2)
- bs263 = testMarshalErr(v263v3, h, t, "enc-map-v263-custom")
- testUnmarshalErr(v263v4, bs263, h, t, "dec-map-v263-p-len")
- testDeepEqualErr(v263v3, v263v4, t, "equal-map-v263-p-len")
- }
- for _, v := range []map[int64]int32{nil, {}, {33: 0, 44: 33}} {
- // fmt.Printf(">>>> running mammoth map v264: %v\n", v)
- var v264v1, v264v2 map[int64]int32
- v264v1 = v
- bs264 := testMarshalErr(v264v1, h, t, "enc-map-v264")
- if v == nil {
- v264v2 = nil
- } else {
- v264v2 = make(map[int64]int32, len(v))
- } // reset map
- testUnmarshalErr(v264v2, bs264, h, t, "dec-map-v264")
- testDeepEqualErr(v264v1, v264v2, t, "equal-map-v264")
- if v == nil {
- v264v2 = nil
- } else {
- v264v2 = make(map[int64]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v264v2), bs264, h, t, "dec-map-v264-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v264v1, v264v2, t, "equal-map-v264-noaddr")
- if v == nil {
- v264v2 = nil
- } else {
- v264v2 = make(map[int64]int32, len(v))
- } // reset map
- testUnmarshalErr(&v264v2, bs264, h, t, "dec-map-v264-p-len")
- testDeepEqualErr(v264v1, v264v2, t, "equal-map-v264-p-len")
- bs264 = testMarshalErr(&v264v1, h, t, "enc-map-v264-p")
- v264v2 = nil
- testUnmarshalErr(&v264v2, bs264, h, t, "dec-map-v264-p-nil")
- testDeepEqualErr(v264v1, v264v2, t, "equal-map-v264-p-nil")
- // ...
- if v == nil {
- v264v2 = nil
- } else {
- v264v2 = make(map[int64]int32, len(v))
- } // reset map
- var v264v3, v264v4 typMapMapInt64Int32
- v264v3 = typMapMapInt64Int32(v264v1)
- v264v4 = typMapMapInt64Int32(v264v2)
- bs264 = testMarshalErr(v264v3, h, t, "enc-map-v264-custom")
- testUnmarshalErr(v264v4, bs264, h, t, "dec-map-v264-p-len")
- testDeepEqualErr(v264v3, v264v4, t, "equal-map-v264-p-len")
- }
- for _, v := range []map[int64]int64{nil, {}, {44: 0, 33: 44}} {
- // fmt.Printf(">>>> running mammoth map v265: %v\n", v)
- var v265v1, v265v2 map[int64]int64
- v265v1 = v
- bs265 := testMarshalErr(v265v1, h, t, "enc-map-v265")
- if v == nil {
- v265v2 = nil
- } else {
- v265v2 = make(map[int64]int64, len(v))
- } // reset map
- testUnmarshalErr(v265v2, bs265, h, t, "dec-map-v265")
- testDeepEqualErr(v265v1, v265v2, t, "equal-map-v265")
- if v == nil {
- v265v2 = nil
- } else {
- v265v2 = make(map[int64]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v265v2), bs265, h, t, "dec-map-v265-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v265v1, v265v2, t, "equal-map-v265-noaddr")
- if v == nil {
- v265v2 = nil
- } else {
- v265v2 = make(map[int64]int64, len(v))
- } // reset map
- testUnmarshalErr(&v265v2, bs265, h, t, "dec-map-v265-p-len")
- testDeepEqualErr(v265v1, v265v2, t, "equal-map-v265-p-len")
- bs265 = testMarshalErr(&v265v1, h, t, "enc-map-v265-p")
- v265v2 = nil
- testUnmarshalErr(&v265v2, bs265, h, t, "dec-map-v265-p-nil")
- testDeepEqualErr(v265v1, v265v2, t, "equal-map-v265-p-nil")
- // ...
- if v == nil {
- v265v2 = nil
- } else {
- v265v2 = make(map[int64]int64, len(v))
- } // reset map
- var v265v3, v265v4 typMapMapInt64Int64
- v265v3 = typMapMapInt64Int64(v265v1)
- v265v4 = typMapMapInt64Int64(v265v2)
- bs265 = testMarshalErr(v265v3, h, t, "enc-map-v265-custom")
- testUnmarshalErr(v265v4, bs265, h, t, "dec-map-v265-p-len")
- testDeepEqualErr(v265v3, v265v4, t, "equal-map-v265-p-len")
- }
- for _, v := range []map[int64]float32{nil, {}, {33: 0, 44: 22.2}} {
- // fmt.Printf(">>>> running mammoth map v266: %v\n", v)
- var v266v1, v266v2 map[int64]float32
- v266v1 = v
- bs266 := testMarshalErr(v266v1, h, t, "enc-map-v266")
- if v == nil {
- v266v2 = nil
- } else {
- v266v2 = make(map[int64]float32, len(v))
- } // reset map
- testUnmarshalErr(v266v2, bs266, h, t, "dec-map-v266")
- testDeepEqualErr(v266v1, v266v2, t, "equal-map-v266")
- if v == nil {
- v266v2 = nil
- } else {
- v266v2 = make(map[int64]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v266v2), bs266, h, t, "dec-map-v266-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v266v1, v266v2, t, "equal-map-v266-noaddr")
- if v == nil {
- v266v2 = nil
- } else {
- v266v2 = make(map[int64]float32, len(v))
- } // reset map
- testUnmarshalErr(&v266v2, bs266, h, t, "dec-map-v266-p-len")
- testDeepEqualErr(v266v1, v266v2, t, "equal-map-v266-p-len")
- bs266 = testMarshalErr(&v266v1, h, t, "enc-map-v266-p")
- v266v2 = nil
- testUnmarshalErr(&v266v2, bs266, h, t, "dec-map-v266-p-nil")
- testDeepEqualErr(v266v1, v266v2, t, "equal-map-v266-p-nil")
- // ...
- if v == nil {
- v266v2 = nil
- } else {
- v266v2 = make(map[int64]float32, len(v))
- } // reset map
- var v266v3, v266v4 typMapMapInt64Float32
- v266v3 = typMapMapInt64Float32(v266v1)
- v266v4 = typMapMapInt64Float32(v266v2)
- bs266 = testMarshalErr(v266v3, h, t, "enc-map-v266-custom")
- testUnmarshalErr(v266v4, bs266, h, t, "dec-map-v266-p-len")
- testDeepEqualErr(v266v3, v266v4, t, "equal-map-v266-p-len")
- }
- for _, v := range []map[int64]float64{nil, {}, {33: 0, 44: 11.1}} {
- // fmt.Printf(">>>> running mammoth map v267: %v\n", v)
- var v267v1, v267v2 map[int64]float64
- v267v1 = v
- bs267 := testMarshalErr(v267v1, h, t, "enc-map-v267")
- if v == nil {
- v267v2 = nil
- } else {
- v267v2 = make(map[int64]float64, len(v))
- } // reset map
- testUnmarshalErr(v267v2, bs267, h, t, "dec-map-v267")
- testDeepEqualErr(v267v1, v267v2, t, "equal-map-v267")
- if v == nil {
- v267v2 = nil
- } else {
- v267v2 = make(map[int64]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v267v2), bs267, h, t, "dec-map-v267-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v267v1, v267v2, t, "equal-map-v267-noaddr")
- if v == nil {
- v267v2 = nil
- } else {
- v267v2 = make(map[int64]float64, len(v))
- } // reset map
- testUnmarshalErr(&v267v2, bs267, h, t, "dec-map-v267-p-len")
- testDeepEqualErr(v267v1, v267v2, t, "equal-map-v267-p-len")
- bs267 = testMarshalErr(&v267v1, h, t, "enc-map-v267-p")
- v267v2 = nil
- testUnmarshalErr(&v267v2, bs267, h, t, "dec-map-v267-p-nil")
- testDeepEqualErr(v267v1, v267v2, t, "equal-map-v267-p-nil")
- // ...
- if v == nil {
- v267v2 = nil
- } else {
- v267v2 = make(map[int64]float64, len(v))
- } // reset map
- var v267v3, v267v4 typMapMapInt64Float64
- v267v3 = typMapMapInt64Float64(v267v1)
- v267v4 = typMapMapInt64Float64(v267v2)
- bs267 = testMarshalErr(v267v3, h, t, "enc-map-v267-custom")
- testUnmarshalErr(v267v4, bs267, h, t, "dec-map-v267-p-len")
- testDeepEqualErr(v267v3, v267v4, t, "equal-map-v267-p-len")
- }
- for _, v := range []map[int64]bool{nil, {}, {33: false, 44: true}} {
- // fmt.Printf(">>>> running mammoth map v268: %v\n", v)
- var v268v1, v268v2 map[int64]bool
- v268v1 = v
- bs268 := testMarshalErr(v268v1, h, t, "enc-map-v268")
- if v == nil {
- v268v2 = nil
- } else {
- v268v2 = make(map[int64]bool, len(v))
- } // reset map
- testUnmarshalErr(v268v2, bs268, h, t, "dec-map-v268")
- testDeepEqualErr(v268v1, v268v2, t, "equal-map-v268")
- if v == nil {
- v268v2 = nil
- } else {
- v268v2 = make(map[int64]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v268v2), bs268, h, t, "dec-map-v268-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v268v1, v268v2, t, "equal-map-v268-noaddr")
- if v == nil {
- v268v2 = nil
- } else {
- v268v2 = make(map[int64]bool, len(v))
- } // reset map
- testUnmarshalErr(&v268v2, bs268, h, t, "dec-map-v268-p-len")
- testDeepEqualErr(v268v1, v268v2, t, "equal-map-v268-p-len")
- bs268 = testMarshalErr(&v268v1, h, t, "enc-map-v268-p")
- v268v2 = nil
- testUnmarshalErr(&v268v2, bs268, h, t, "dec-map-v268-p-nil")
- testDeepEqualErr(v268v1, v268v2, t, "equal-map-v268-p-nil")
- // ...
- if v == nil {
- v268v2 = nil
- } else {
- v268v2 = make(map[int64]bool, len(v))
- } // reset map
- var v268v3, v268v4 typMapMapInt64Bool
- v268v3 = typMapMapInt64Bool(v268v1)
- v268v4 = typMapMapInt64Bool(v268v2)
- bs268 = testMarshalErr(v268v3, h, t, "enc-map-v268-custom")
- testUnmarshalErr(v268v4, bs268, h, t, "dec-map-v268-p-len")
- testDeepEqualErr(v268v3, v268v4, t, "equal-map-v268-p-len")
- }
- for _, v := range []map[bool]interface{}{nil, {}, {true: nil}} {
- // fmt.Printf(">>>> running mammoth map v271: %v\n", v)
- var v271v1, v271v2 map[bool]interface{}
- v271v1 = v
- bs271 := testMarshalErr(v271v1, h, t, "enc-map-v271")
- if v == nil {
- v271v2 = nil
- } else {
- v271v2 = make(map[bool]interface{}, len(v))
- } // reset map
- testUnmarshalErr(v271v2, bs271, h, t, "dec-map-v271")
- testDeepEqualErr(v271v1, v271v2, t, "equal-map-v271")
- if v == nil {
- v271v2 = nil
- } else {
- v271v2 = make(map[bool]interface{}, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v271v2), bs271, h, t, "dec-map-v271-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v271v1, v271v2, t, "equal-map-v271-noaddr")
- if v == nil {
- v271v2 = nil
- } else {
- v271v2 = make(map[bool]interface{}, len(v))
- } // reset map
- testUnmarshalErr(&v271v2, bs271, h, t, "dec-map-v271-p-len")
- testDeepEqualErr(v271v1, v271v2, t, "equal-map-v271-p-len")
- bs271 = testMarshalErr(&v271v1, h, t, "enc-map-v271-p")
- v271v2 = nil
- testUnmarshalErr(&v271v2, bs271, h, t, "dec-map-v271-p-nil")
- testDeepEqualErr(v271v1, v271v2, t, "equal-map-v271-p-nil")
- // ...
- if v == nil {
- v271v2 = nil
- } else {
- v271v2 = make(map[bool]interface{}, len(v))
- } // reset map
- var v271v3, v271v4 typMapMapBoolIntf
- v271v3 = typMapMapBoolIntf(v271v1)
- v271v4 = typMapMapBoolIntf(v271v2)
- bs271 = testMarshalErr(v271v3, h, t, "enc-map-v271-custom")
- testUnmarshalErr(v271v4, bs271, h, t, "dec-map-v271-p-len")
- testDeepEqualErr(v271v3, v271v4, t, "equal-map-v271-p-len")
- }
- for _, v := range []map[bool]string{nil, {}, {true: ""}} {
- // fmt.Printf(">>>> running mammoth map v272: %v\n", v)
- var v272v1, v272v2 map[bool]string
- v272v1 = v
- bs272 := testMarshalErr(v272v1, h, t, "enc-map-v272")
- if v == nil {
- v272v2 = nil
- } else {
- v272v2 = make(map[bool]string, len(v))
- } // reset map
- testUnmarshalErr(v272v2, bs272, h, t, "dec-map-v272")
- testDeepEqualErr(v272v1, v272v2, t, "equal-map-v272")
- if v == nil {
- v272v2 = nil
- } else {
- v272v2 = make(map[bool]string, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v272v2), bs272, h, t, "dec-map-v272-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v272v1, v272v2, t, "equal-map-v272-noaddr")
- if v == nil {
- v272v2 = nil
- } else {
- v272v2 = make(map[bool]string, len(v))
- } // reset map
- testUnmarshalErr(&v272v2, bs272, h, t, "dec-map-v272-p-len")
- testDeepEqualErr(v272v1, v272v2, t, "equal-map-v272-p-len")
- bs272 = testMarshalErr(&v272v1, h, t, "enc-map-v272-p")
- v272v2 = nil
- testUnmarshalErr(&v272v2, bs272, h, t, "dec-map-v272-p-nil")
- testDeepEqualErr(v272v1, v272v2, t, "equal-map-v272-p-nil")
- // ...
- if v == nil {
- v272v2 = nil
- } else {
- v272v2 = make(map[bool]string, len(v))
- } // reset map
- var v272v3, v272v4 typMapMapBoolString
- v272v3 = typMapMapBoolString(v272v1)
- v272v4 = typMapMapBoolString(v272v2)
- bs272 = testMarshalErr(v272v3, h, t, "enc-map-v272-custom")
- testUnmarshalErr(v272v4, bs272, h, t, "dec-map-v272-p-len")
- testDeepEqualErr(v272v3, v272v4, t, "equal-map-v272-p-len")
- }
- for _, v := range []map[bool]uint{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v273: %v\n", v)
- var v273v1, v273v2 map[bool]uint
- v273v1 = v
- bs273 := testMarshalErr(v273v1, h, t, "enc-map-v273")
- if v == nil {
- v273v2 = nil
- } else {
- v273v2 = make(map[bool]uint, len(v))
- } // reset map
- testUnmarshalErr(v273v2, bs273, h, t, "dec-map-v273")
- testDeepEqualErr(v273v1, v273v2, t, "equal-map-v273")
- if v == nil {
- v273v2 = nil
- } else {
- v273v2 = make(map[bool]uint, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v273v2), bs273, h, t, "dec-map-v273-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v273v1, v273v2, t, "equal-map-v273-noaddr")
- if v == nil {
- v273v2 = nil
- } else {
- v273v2 = make(map[bool]uint, len(v))
- } // reset map
- testUnmarshalErr(&v273v2, bs273, h, t, "dec-map-v273-p-len")
- testDeepEqualErr(v273v1, v273v2, t, "equal-map-v273-p-len")
- bs273 = testMarshalErr(&v273v1, h, t, "enc-map-v273-p")
- v273v2 = nil
- testUnmarshalErr(&v273v2, bs273, h, t, "dec-map-v273-p-nil")
- testDeepEqualErr(v273v1, v273v2, t, "equal-map-v273-p-nil")
- // ...
- if v == nil {
- v273v2 = nil
- } else {
- v273v2 = make(map[bool]uint, len(v))
- } // reset map
- var v273v3, v273v4 typMapMapBoolUint
- v273v3 = typMapMapBoolUint(v273v1)
- v273v4 = typMapMapBoolUint(v273v2)
- bs273 = testMarshalErr(v273v3, h, t, "enc-map-v273-custom")
- testUnmarshalErr(v273v4, bs273, h, t, "dec-map-v273-p-len")
- testDeepEqualErr(v273v3, v273v4, t, "equal-map-v273-p-len")
- }
- for _, v := range []map[bool]uint8{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v274: %v\n", v)
- var v274v1, v274v2 map[bool]uint8
- v274v1 = v
- bs274 := testMarshalErr(v274v1, h, t, "enc-map-v274")
- if v == nil {
- v274v2 = nil
- } else {
- v274v2 = make(map[bool]uint8, len(v))
- } // reset map
- testUnmarshalErr(v274v2, bs274, h, t, "dec-map-v274")
- testDeepEqualErr(v274v1, v274v2, t, "equal-map-v274")
- if v == nil {
- v274v2 = nil
- } else {
- v274v2 = make(map[bool]uint8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v274v2), bs274, h, t, "dec-map-v274-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v274v1, v274v2, t, "equal-map-v274-noaddr")
- if v == nil {
- v274v2 = nil
- } else {
- v274v2 = make(map[bool]uint8, len(v))
- } // reset map
- testUnmarshalErr(&v274v2, bs274, h, t, "dec-map-v274-p-len")
- testDeepEqualErr(v274v1, v274v2, t, "equal-map-v274-p-len")
- bs274 = testMarshalErr(&v274v1, h, t, "enc-map-v274-p")
- v274v2 = nil
- testUnmarshalErr(&v274v2, bs274, h, t, "dec-map-v274-p-nil")
- testDeepEqualErr(v274v1, v274v2, t, "equal-map-v274-p-nil")
- // ...
- if v == nil {
- v274v2 = nil
- } else {
- v274v2 = make(map[bool]uint8, len(v))
- } // reset map
- var v274v3, v274v4 typMapMapBoolUint8
- v274v3 = typMapMapBoolUint8(v274v1)
- v274v4 = typMapMapBoolUint8(v274v2)
- bs274 = testMarshalErr(v274v3, h, t, "enc-map-v274-custom")
- testUnmarshalErr(v274v4, bs274, h, t, "dec-map-v274-p-len")
- testDeepEqualErr(v274v3, v274v4, t, "equal-map-v274-p-len")
- }
- for _, v := range []map[bool]uint16{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v275: %v\n", v)
- var v275v1, v275v2 map[bool]uint16
- v275v1 = v
- bs275 := testMarshalErr(v275v1, h, t, "enc-map-v275")
- if v == nil {
- v275v2 = nil
- } else {
- v275v2 = make(map[bool]uint16, len(v))
- } // reset map
- testUnmarshalErr(v275v2, bs275, h, t, "dec-map-v275")
- testDeepEqualErr(v275v1, v275v2, t, "equal-map-v275")
- if v == nil {
- v275v2 = nil
- } else {
- v275v2 = make(map[bool]uint16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v275v2), bs275, h, t, "dec-map-v275-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v275v1, v275v2, t, "equal-map-v275-noaddr")
- if v == nil {
- v275v2 = nil
- } else {
- v275v2 = make(map[bool]uint16, len(v))
- } // reset map
- testUnmarshalErr(&v275v2, bs275, h, t, "dec-map-v275-p-len")
- testDeepEqualErr(v275v1, v275v2, t, "equal-map-v275-p-len")
- bs275 = testMarshalErr(&v275v1, h, t, "enc-map-v275-p")
- v275v2 = nil
- testUnmarshalErr(&v275v2, bs275, h, t, "dec-map-v275-p-nil")
- testDeepEqualErr(v275v1, v275v2, t, "equal-map-v275-p-nil")
- // ...
- if v == nil {
- v275v2 = nil
- } else {
- v275v2 = make(map[bool]uint16, len(v))
- } // reset map
- var v275v3, v275v4 typMapMapBoolUint16
- v275v3 = typMapMapBoolUint16(v275v1)
- v275v4 = typMapMapBoolUint16(v275v2)
- bs275 = testMarshalErr(v275v3, h, t, "enc-map-v275-custom")
- testUnmarshalErr(v275v4, bs275, h, t, "dec-map-v275-p-len")
- testDeepEqualErr(v275v3, v275v4, t, "equal-map-v275-p-len")
- }
- for _, v := range []map[bool]uint32{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v276: %v\n", v)
- var v276v1, v276v2 map[bool]uint32
- v276v1 = v
- bs276 := testMarshalErr(v276v1, h, t, "enc-map-v276")
- if v == nil {
- v276v2 = nil
- } else {
- v276v2 = make(map[bool]uint32, len(v))
- } // reset map
- testUnmarshalErr(v276v2, bs276, h, t, "dec-map-v276")
- testDeepEqualErr(v276v1, v276v2, t, "equal-map-v276")
- if v == nil {
- v276v2 = nil
- } else {
- v276v2 = make(map[bool]uint32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v276v2), bs276, h, t, "dec-map-v276-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v276v1, v276v2, t, "equal-map-v276-noaddr")
- if v == nil {
- v276v2 = nil
- } else {
- v276v2 = make(map[bool]uint32, len(v))
- } // reset map
- testUnmarshalErr(&v276v2, bs276, h, t, "dec-map-v276-p-len")
- testDeepEqualErr(v276v1, v276v2, t, "equal-map-v276-p-len")
- bs276 = testMarshalErr(&v276v1, h, t, "enc-map-v276-p")
- v276v2 = nil
- testUnmarshalErr(&v276v2, bs276, h, t, "dec-map-v276-p-nil")
- testDeepEqualErr(v276v1, v276v2, t, "equal-map-v276-p-nil")
- // ...
- if v == nil {
- v276v2 = nil
- } else {
- v276v2 = make(map[bool]uint32, len(v))
- } // reset map
- var v276v3, v276v4 typMapMapBoolUint32
- v276v3 = typMapMapBoolUint32(v276v1)
- v276v4 = typMapMapBoolUint32(v276v2)
- bs276 = testMarshalErr(v276v3, h, t, "enc-map-v276-custom")
- testUnmarshalErr(v276v4, bs276, h, t, "dec-map-v276-p-len")
- testDeepEqualErr(v276v3, v276v4, t, "equal-map-v276-p-len")
- }
- for _, v := range []map[bool]uint64{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v277: %v\n", v)
- var v277v1, v277v2 map[bool]uint64
- v277v1 = v
- bs277 := testMarshalErr(v277v1, h, t, "enc-map-v277")
- if v == nil {
- v277v2 = nil
- } else {
- v277v2 = make(map[bool]uint64, len(v))
- } // reset map
- testUnmarshalErr(v277v2, bs277, h, t, "dec-map-v277")
- testDeepEqualErr(v277v1, v277v2, t, "equal-map-v277")
- if v == nil {
- v277v2 = nil
- } else {
- v277v2 = make(map[bool]uint64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v277v2), bs277, h, t, "dec-map-v277-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v277v1, v277v2, t, "equal-map-v277-noaddr")
- if v == nil {
- v277v2 = nil
- } else {
- v277v2 = make(map[bool]uint64, len(v))
- } // reset map
- testUnmarshalErr(&v277v2, bs277, h, t, "dec-map-v277-p-len")
- testDeepEqualErr(v277v1, v277v2, t, "equal-map-v277-p-len")
- bs277 = testMarshalErr(&v277v1, h, t, "enc-map-v277-p")
- v277v2 = nil
- testUnmarshalErr(&v277v2, bs277, h, t, "dec-map-v277-p-nil")
- testDeepEqualErr(v277v1, v277v2, t, "equal-map-v277-p-nil")
- // ...
- if v == nil {
- v277v2 = nil
- } else {
- v277v2 = make(map[bool]uint64, len(v))
- } // reset map
- var v277v3, v277v4 typMapMapBoolUint64
- v277v3 = typMapMapBoolUint64(v277v1)
- v277v4 = typMapMapBoolUint64(v277v2)
- bs277 = testMarshalErr(v277v3, h, t, "enc-map-v277-custom")
- testUnmarshalErr(v277v4, bs277, h, t, "dec-map-v277-p-len")
- testDeepEqualErr(v277v3, v277v4, t, "equal-map-v277-p-len")
- }
- for _, v := range []map[bool]uintptr{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v278: %v\n", v)
- var v278v1, v278v2 map[bool]uintptr
- v278v1 = v
- bs278 := testMarshalErr(v278v1, h, t, "enc-map-v278")
- if v == nil {
- v278v2 = nil
- } else {
- v278v2 = make(map[bool]uintptr, len(v))
- } // reset map
- testUnmarshalErr(v278v2, bs278, h, t, "dec-map-v278")
- testDeepEqualErr(v278v1, v278v2, t, "equal-map-v278")
- if v == nil {
- v278v2 = nil
- } else {
- v278v2 = make(map[bool]uintptr, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v278v2), bs278, h, t, "dec-map-v278-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v278v1, v278v2, t, "equal-map-v278-noaddr")
- if v == nil {
- v278v2 = nil
- } else {
- v278v2 = make(map[bool]uintptr, len(v))
- } // reset map
- testUnmarshalErr(&v278v2, bs278, h, t, "dec-map-v278-p-len")
- testDeepEqualErr(v278v1, v278v2, t, "equal-map-v278-p-len")
- bs278 = testMarshalErr(&v278v1, h, t, "enc-map-v278-p")
- v278v2 = nil
- testUnmarshalErr(&v278v2, bs278, h, t, "dec-map-v278-p-nil")
- testDeepEqualErr(v278v1, v278v2, t, "equal-map-v278-p-nil")
- // ...
- if v == nil {
- v278v2 = nil
- } else {
- v278v2 = make(map[bool]uintptr, len(v))
- } // reset map
- var v278v3, v278v4 typMapMapBoolUintptr
- v278v3 = typMapMapBoolUintptr(v278v1)
- v278v4 = typMapMapBoolUintptr(v278v2)
- bs278 = testMarshalErr(v278v3, h, t, "enc-map-v278-custom")
- testUnmarshalErr(v278v4, bs278, h, t, "dec-map-v278-p-len")
- testDeepEqualErr(v278v3, v278v4, t, "equal-map-v278-p-len")
- }
- for _, v := range []map[bool]int{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v279: %v\n", v)
- var v279v1, v279v2 map[bool]int
- v279v1 = v
- bs279 := testMarshalErr(v279v1, h, t, "enc-map-v279")
- if v == nil {
- v279v2 = nil
- } else {
- v279v2 = make(map[bool]int, len(v))
- } // reset map
- testUnmarshalErr(v279v2, bs279, h, t, "dec-map-v279")
- testDeepEqualErr(v279v1, v279v2, t, "equal-map-v279")
- if v == nil {
- v279v2 = nil
- } else {
- v279v2 = make(map[bool]int, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v279v2), bs279, h, t, "dec-map-v279-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v279v1, v279v2, t, "equal-map-v279-noaddr")
- if v == nil {
- v279v2 = nil
- } else {
- v279v2 = make(map[bool]int, len(v))
- } // reset map
- testUnmarshalErr(&v279v2, bs279, h, t, "dec-map-v279-p-len")
- testDeepEqualErr(v279v1, v279v2, t, "equal-map-v279-p-len")
- bs279 = testMarshalErr(&v279v1, h, t, "enc-map-v279-p")
- v279v2 = nil
- testUnmarshalErr(&v279v2, bs279, h, t, "dec-map-v279-p-nil")
- testDeepEqualErr(v279v1, v279v2, t, "equal-map-v279-p-nil")
- // ...
- if v == nil {
- v279v2 = nil
- } else {
- v279v2 = make(map[bool]int, len(v))
- } // reset map
- var v279v3, v279v4 typMapMapBoolInt
- v279v3 = typMapMapBoolInt(v279v1)
- v279v4 = typMapMapBoolInt(v279v2)
- bs279 = testMarshalErr(v279v3, h, t, "enc-map-v279-custom")
- testUnmarshalErr(v279v4, bs279, h, t, "dec-map-v279-p-len")
- testDeepEqualErr(v279v3, v279v4, t, "equal-map-v279-p-len")
- }
- for _, v := range []map[bool]int8{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v280: %v\n", v)
- var v280v1, v280v2 map[bool]int8
- v280v1 = v
- bs280 := testMarshalErr(v280v1, h, t, "enc-map-v280")
- if v == nil {
- v280v2 = nil
- } else {
- v280v2 = make(map[bool]int8, len(v))
- } // reset map
- testUnmarshalErr(v280v2, bs280, h, t, "dec-map-v280")
- testDeepEqualErr(v280v1, v280v2, t, "equal-map-v280")
- if v == nil {
- v280v2 = nil
- } else {
- v280v2 = make(map[bool]int8, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v280v2), bs280, h, t, "dec-map-v280-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v280v1, v280v2, t, "equal-map-v280-noaddr")
- if v == nil {
- v280v2 = nil
- } else {
- v280v2 = make(map[bool]int8, len(v))
- } // reset map
- testUnmarshalErr(&v280v2, bs280, h, t, "dec-map-v280-p-len")
- testDeepEqualErr(v280v1, v280v2, t, "equal-map-v280-p-len")
- bs280 = testMarshalErr(&v280v1, h, t, "enc-map-v280-p")
- v280v2 = nil
- testUnmarshalErr(&v280v2, bs280, h, t, "dec-map-v280-p-nil")
- testDeepEqualErr(v280v1, v280v2, t, "equal-map-v280-p-nil")
- // ...
- if v == nil {
- v280v2 = nil
- } else {
- v280v2 = make(map[bool]int8, len(v))
- } // reset map
- var v280v3, v280v4 typMapMapBoolInt8
- v280v3 = typMapMapBoolInt8(v280v1)
- v280v4 = typMapMapBoolInt8(v280v2)
- bs280 = testMarshalErr(v280v3, h, t, "enc-map-v280-custom")
- testUnmarshalErr(v280v4, bs280, h, t, "dec-map-v280-p-len")
- testDeepEqualErr(v280v3, v280v4, t, "equal-map-v280-p-len")
- }
- for _, v := range []map[bool]int16{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v281: %v\n", v)
- var v281v1, v281v2 map[bool]int16
- v281v1 = v
- bs281 := testMarshalErr(v281v1, h, t, "enc-map-v281")
- if v == nil {
- v281v2 = nil
- } else {
- v281v2 = make(map[bool]int16, len(v))
- } // reset map
- testUnmarshalErr(v281v2, bs281, h, t, "dec-map-v281")
- testDeepEqualErr(v281v1, v281v2, t, "equal-map-v281")
- if v == nil {
- v281v2 = nil
- } else {
- v281v2 = make(map[bool]int16, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v281v2), bs281, h, t, "dec-map-v281-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v281v1, v281v2, t, "equal-map-v281-noaddr")
- if v == nil {
- v281v2 = nil
- } else {
- v281v2 = make(map[bool]int16, len(v))
- } // reset map
- testUnmarshalErr(&v281v2, bs281, h, t, "dec-map-v281-p-len")
- testDeepEqualErr(v281v1, v281v2, t, "equal-map-v281-p-len")
- bs281 = testMarshalErr(&v281v1, h, t, "enc-map-v281-p")
- v281v2 = nil
- testUnmarshalErr(&v281v2, bs281, h, t, "dec-map-v281-p-nil")
- testDeepEqualErr(v281v1, v281v2, t, "equal-map-v281-p-nil")
- // ...
- if v == nil {
- v281v2 = nil
- } else {
- v281v2 = make(map[bool]int16, len(v))
- } // reset map
- var v281v3, v281v4 typMapMapBoolInt16
- v281v3 = typMapMapBoolInt16(v281v1)
- v281v4 = typMapMapBoolInt16(v281v2)
- bs281 = testMarshalErr(v281v3, h, t, "enc-map-v281-custom")
- testUnmarshalErr(v281v4, bs281, h, t, "dec-map-v281-p-len")
- testDeepEqualErr(v281v3, v281v4, t, "equal-map-v281-p-len")
- }
- for _, v := range []map[bool]int32{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v282: %v\n", v)
- var v282v1, v282v2 map[bool]int32
- v282v1 = v
- bs282 := testMarshalErr(v282v1, h, t, "enc-map-v282")
- if v == nil {
- v282v2 = nil
- } else {
- v282v2 = make(map[bool]int32, len(v))
- } // reset map
- testUnmarshalErr(v282v2, bs282, h, t, "dec-map-v282")
- testDeepEqualErr(v282v1, v282v2, t, "equal-map-v282")
- if v == nil {
- v282v2 = nil
- } else {
- v282v2 = make(map[bool]int32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v282v2), bs282, h, t, "dec-map-v282-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v282v1, v282v2, t, "equal-map-v282-noaddr")
- if v == nil {
- v282v2 = nil
- } else {
- v282v2 = make(map[bool]int32, len(v))
- } // reset map
- testUnmarshalErr(&v282v2, bs282, h, t, "dec-map-v282-p-len")
- testDeepEqualErr(v282v1, v282v2, t, "equal-map-v282-p-len")
- bs282 = testMarshalErr(&v282v1, h, t, "enc-map-v282-p")
- v282v2 = nil
- testUnmarshalErr(&v282v2, bs282, h, t, "dec-map-v282-p-nil")
- testDeepEqualErr(v282v1, v282v2, t, "equal-map-v282-p-nil")
- // ...
- if v == nil {
- v282v2 = nil
- } else {
- v282v2 = make(map[bool]int32, len(v))
- } // reset map
- var v282v3, v282v4 typMapMapBoolInt32
- v282v3 = typMapMapBoolInt32(v282v1)
- v282v4 = typMapMapBoolInt32(v282v2)
- bs282 = testMarshalErr(v282v3, h, t, "enc-map-v282-custom")
- testUnmarshalErr(v282v4, bs282, h, t, "dec-map-v282-p-len")
- testDeepEqualErr(v282v3, v282v4, t, "equal-map-v282-p-len")
- }
- for _, v := range []map[bool]int64{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v283: %v\n", v)
- var v283v1, v283v2 map[bool]int64
- v283v1 = v
- bs283 := testMarshalErr(v283v1, h, t, "enc-map-v283")
- if v == nil {
- v283v2 = nil
- } else {
- v283v2 = make(map[bool]int64, len(v))
- } // reset map
- testUnmarshalErr(v283v2, bs283, h, t, "dec-map-v283")
- testDeepEqualErr(v283v1, v283v2, t, "equal-map-v283")
- if v == nil {
- v283v2 = nil
- } else {
- v283v2 = make(map[bool]int64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v283v2), bs283, h, t, "dec-map-v283-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v283v1, v283v2, t, "equal-map-v283-noaddr")
- if v == nil {
- v283v2 = nil
- } else {
- v283v2 = make(map[bool]int64, len(v))
- } // reset map
- testUnmarshalErr(&v283v2, bs283, h, t, "dec-map-v283-p-len")
- testDeepEqualErr(v283v1, v283v2, t, "equal-map-v283-p-len")
- bs283 = testMarshalErr(&v283v1, h, t, "enc-map-v283-p")
- v283v2 = nil
- testUnmarshalErr(&v283v2, bs283, h, t, "dec-map-v283-p-nil")
- testDeepEqualErr(v283v1, v283v2, t, "equal-map-v283-p-nil")
- // ...
- if v == nil {
- v283v2 = nil
- } else {
- v283v2 = make(map[bool]int64, len(v))
- } // reset map
- var v283v3, v283v4 typMapMapBoolInt64
- v283v3 = typMapMapBoolInt64(v283v1)
- v283v4 = typMapMapBoolInt64(v283v2)
- bs283 = testMarshalErr(v283v3, h, t, "enc-map-v283-custom")
- testUnmarshalErr(v283v4, bs283, h, t, "dec-map-v283-p-len")
- testDeepEqualErr(v283v3, v283v4, t, "equal-map-v283-p-len")
- }
- for _, v := range []map[bool]float32{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v284: %v\n", v)
- var v284v1, v284v2 map[bool]float32
- v284v1 = v
- bs284 := testMarshalErr(v284v1, h, t, "enc-map-v284")
- if v == nil {
- v284v2 = nil
- } else {
- v284v2 = make(map[bool]float32, len(v))
- } // reset map
- testUnmarshalErr(v284v2, bs284, h, t, "dec-map-v284")
- testDeepEqualErr(v284v1, v284v2, t, "equal-map-v284")
- if v == nil {
- v284v2 = nil
- } else {
- v284v2 = make(map[bool]float32, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v284v2), bs284, h, t, "dec-map-v284-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v284v1, v284v2, t, "equal-map-v284-noaddr")
- if v == nil {
- v284v2 = nil
- } else {
- v284v2 = make(map[bool]float32, len(v))
- } // reset map
- testUnmarshalErr(&v284v2, bs284, h, t, "dec-map-v284-p-len")
- testDeepEqualErr(v284v1, v284v2, t, "equal-map-v284-p-len")
- bs284 = testMarshalErr(&v284v1, h, t, "enc-map-v284-p")
- v284v2 = nil
- testUnmarshalErr(&v284v2, bs284, h, t, "dec-map-v284-p-nil")
- testDeepEqualErr(v284v1, v284v2, t, "equal-map-v284-p-nil")
- // ...
- if v == nil {
- v284v2 = nil
- } else {
- v284v2 = make(map[bool]float32, len(v))
- } // reset map
- var v284v3, v284v4 typMapMapBoolFloat32
- v284v3 = typMapMapBoolFloat32(v284v1)
- v284v4 = typMapMapBoolFloat32(v284v2)
- bs284 = testMarshalErr(v284v3, h, t, "enc-map-v284-custom")
- testUnmarshalErr(v284v4, bs284, h, t, "dec-map-v284-p-len")
- testDeepEqualErr(v284v3, v284v4, t, "equal-map-v284-p-len")
- }
- for _, v := range []map[bool]float64{nil, {}, {true: 0}} {
- // fmt.Printf(">>>> running mammoth map v285: %v\n", v)
- var v285v1, v285v2 map[bool]float64
- v285v1 = v
- bs285 := testMarshalErr(v285v1, h, t, "enc-map-v285")
- if v == nil {
- v285v2 = nil
- } else {
- v285v2 = make(map[bool]float64, len(v))
- } // reset map
- testUnmarshalErr(v285v2, bs285, h, t, "dec-map-v285")
- testDeepEqualErr(v285v1, v285v2, t, "equal-map-v285")
- if v == nil {
- v285v2 = nil
- } else {
- v285v2 = make(map[bool]float64, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v285v2), bs285, h, t, "dec-map-v285-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v285v1, v285v2, t, "equal-map-v285-noaddr")
- if v == nil {
- v285v2 = nil
- } else {
- v285v2 = make(map[bool]float64, len(v))
- } // reset map
- testUnmarshalErr(&v285v2, bs285, h, t, "dec-map-v285-p-len")
- testDeepEqualErr(v285v1, v285v2, t, "equal-map-v285-p-len")
- bs285 = testMarshalErr(&v285v1, h, t, "enc-map-v285-p")
- v285v2 = nil
- testUnmarshalErr(&v285v2, bs285, h, t, "dec-map-v285-p-nil")
- testDeepEqualErr(v285v1, v285v2, t, "equal-map-v285-p-nil")
- // ...
- if v == nil {
- v285v2 = nil
- } else {
- v285v2 = make(map[bool]float64, len(v))
- } // reset map
- var v285v3, v285v4 typMapMapBoolFloat64
- v285v3 = typMapMapBoolFloat64(v285v1)
- v285v4 = typMapMapBoolFloat64(v285v2)
- bs285 = testMarshalErr(v285v3, h, t, "enc-map-v285-custom")
- testUnmarshalErr(v285v4, bs285, h, t, "dec-map-v285-p-len")
- testDeepEqualErr(v285v3, v285v4, t, "equal-map-v285-p-len")
- }
- for _, v := range []map[bool]bool{nil, {}, {true: false}} {
- // fmt.Printf(">>>> running mammoth map v286: %v\n", v)
- var v286v1, v286v2 map[bool]bool
- v286v1 = v
- bs286 := testMarshalErr(v286v1, h, t, "enc-map-v286")
- if v == nil {
- v286v2 = nil
- } else {
- v286v2 = make(map[bool]bool, len(v))
- } // reset map
- testUnmarshalErr(v286v2, bs286, h, t, "dec-map-v286")
- testDeepEqualErr(v286v1, v286v2, t, "equal-map-v286")
- if v == nil {
- v286v2 = nil
- } else {
- v286v2 = make(map[bool]bool, len(v))
- } // reset map
- testUnmarshalErr(reflect.ValueOf(v286v2), bs286, h, t, "dec-map-v286-noaddr") // decode into non-addressable map value
- testDeepEqualErr(v286v1, v286v2, t, "equal-map-v286-noaddr")
- if v == nil {
- v286v2 = nil
- } else {
- v286v2 = make(map[bool]bool, len(v))
- } // reset map
- testUnmarshalErr(&v286v2, bs286, h, t, "dec-map-v286-p-len")
- testDeepEqualErr(v286v1, v286v2, t, "equal-map-v286-p-len")
- bs286 = testMarshalErr(&v286v1, h, t, "enc-map-v286-p")
- v286v2 = nil
- testUnmarshalErr(&v286v2, bs286, h, t, "dec-map-v286-p-nil")
- testDeepEqualErr(v286v1, v286v2, t, "equal-map-v286-p-nil")
- // ...
- if v == nil {
- v286v2 = nil
- } else {
- v286v2 = make(map[bool]bool, len(v))
- } // reset map
- var v286v3, v286v4 typMapMapBoolBool
- v286v3 = typMapMapBoolBool(v286v1)
- v286v4 = typMapMapBoolBool(v286v2)
- bs286 = testMarshalErr(v286v3, h, t, "enc-map-v286-custom")
- testUnmarshalErr(v286v4, bs286, h, t, "dec-map-v286-p-len")
- testDeepEqualErr(v286v3, v286v4, t, "equal-map-v286-p-len")
- }
- }
- func doTestMammothMapsAndSlices(t *testing.T, h Handle) {
- doTestMammothSlices(t, h)
- doTestMammothMaps(t, h)
- }
|