github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/zrealm_tests0.gno (about)

     1  // PKGPATH: gno.land/r/demo/tests_test
     2  package tests_test
     3  
     4  import (
     5  	"gno.land/r/demo/tests"
     6  	"gno.land/r/demo/tests_foo"
     7  )
     8  
     9  func init() {
    10  	tests_foo.AddFooStringer("one")
    11  	tests_foo.AddFooStringer("two")
    12  }
    13  
    14  func main() {
    15  	tests_foo.AddFooStringer("three")
    16  	println(tests.Render(""))
    17  }
    18  
    19  // Output:
    20  // 0: &FooStringer{one}
    21  // 1: &FooStringer{two}
    22  // 2: &FooStringer{three}
    23  
    24  // Realm:
    25  // switchrealm["gno.land/r/demo/tests"]
    26  // c[0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:10]={
    27  //     "Fields": [
    28  //         {
    29  //             "T": {
    30  //                 "@type": "/gno.PrimitiveType",
    31  //                 "value": "16"
    32  //             },
    33  //             "V": {
    34  //                 "@type": "/gno.StringValue",
    35  //                 "value": "three"
    36  //             }
    37  //         }
    38  //     ],
    39  //     "ObjectInfo": {
    40  //         "ID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:10",
    41  //         "ModTime": "0",
    42  //         "OwnerID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:9",
    43  //         "RefCount": "1"
    44  //     }
    45  // }
    46  // c[0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:9]={
    47  //     "Data": null,
    48  //     "List": [
    49  //         {
    50  //             "T": {
    51  //                 "@type": "/gno.PointerType",
    52  //                 "Elt": {
    53  //                     "@type": "/gno.RefType",
    54  //                     "ID": "gno.land/r/demo/tests_foo.FooStringer"
    55  //                 }
    56  //             },
    57  //             "V": {
    58  //                 "@type": "/gno.PointerValue",
    59  //                 "Base": null,
    60  //                 "Index": "0",
    61  //                 "TV": {
    62  //                     "T": {
    63  //                         "@type": "/gno.RefType",
    64  //                         "ID": "gno.land/r/demo/tests_foo.FooStringer"
    65  //                     },
    66  //                     "V": {
    67  //                         "@type": "/gno.RefValue",
    68  //                         "Hash": "94c14b2efc4bb2f3c24ee42292f161fd1ebd72a3",
    69  //                         "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:6"
    70  //                     }
    71  //                 }
    72  //             }
    73  //         },
    74  //         {
    75  //             "T": {
    76  //                 "@type": "/gno.PointerType",
    77  //                 "Elt": {
    78  //                     "@type": "/gno.RefType",
    79  //                     "ID": "gno.land/r/demo/tests_foo.FooStringer"
    80  //                 }
    81  //             },
    82  //             "V": {
    83  //                 "@type": "/gno.PointerValue",
    84  //                 "Base": null,
    85  //                 "Index": "0",
    86  //                 "TV": {
    87  //                     "T": {
    88  //                         "@type": "/gno.RefType",
    89  //                         "ID": "gno.land/r/demo/tests_foo.FooStringer"
    90  //                     },
    91  //                     "V": {
    92  //                         "@type": "/gno.RefValue",
    93  //                         "Hash": "1e36da78d1dc72e5cbac56c27590332574c89678",
    94  //                         "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:8"
    95  //                     }
    96  //                 }
    97  //             }
    98  //         },
    99  //         {
   100  //             "T": {
   101  //                 "@type": "/gno.PointerType",
   102  //                 "Elt": {
   103  //                     "@type": "/gno.RefType",
   104  //                     "ID": "gno.land/r/demo/tests_foo.FooStringer"
   105  //                 }
   106  //             },
   107  //             "V": {
   108  //                 "@type": "/gno.PointerValue",
   109  //                 "Base": null,
   110  //                 "Index": "0",
   111  //                 "TV": {
   112  //                     "T": {
   113  //                         "@type": "/gno.RefType",
   114  //                         "ID": "gno.land/r/demo/tests_foo.FooStringer"
   115  //                     },
   116  //                     "V": {
   117  //                         "@type": "/gno.RefValue",
   118  //                         "Hash": "43b13870b750f78cda919fa13a5d955d297242bd",
   119  //                         "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:10"
   120  //                     }
   121  //                 }
   122  //             }
   123  //         }
   124  //     ],
   125  //     "ObjectInfo": {
   126  //         "ID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:9",
   127  //         "ModTime": "0",
   128  //         "OwnerID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:2",
   129  //         "RefCount": "1"
   130  //     }
   131  // }
   132  // u[0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:2]={
   133  //     "Blank": {},
   134  //     "ObjectInfo": {
   135  //         "ID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:2",
   136  //         "IsEscaped": true,
   137  //         "ModTime": "8",
   138  //         "RefCount": "3"
   139  //     },
   140  //     "Parent": null,
   141  //     "Source": {
   142  //         "@type": "/gno.RefNode",
   143  //         "BlockNode": null,
   144  //         "Location": {
   145  //             "File": "",
   146  //             "Line": "0",
   147  //             "Nonce": "0",
   148  //             "PkgPath": "gno.land/r/demo/tests"
   149  //         }
   150  //     },
   151  //     "Values": [
   152  //         {
   153  //             "T": {
   154  //                 "@type": "/gno.TypeType"
   155  //             },
   156  //             "V": {
   157  //                 "@type": "/gno.TypeValue",
   158  //                 "Type": {
   159  //                     "@type": "/gno.DeclaredType",
   160  //                     "Base": {
   161  //                         "@type": "/gno.InterfaceType",
   162  //                         "Generic": "",
   163  //                         "Methods": [
   164  //                             {
   165  //                                 "Embedded": false,
   166  //                                 "Name": "String",
   167  //                                 "Tag": "",
   168  //                                 "Type": {
   169  //                                     "@type": "/gno.FuncType",
   170  //                                     "Params": [],
   171  //                                     "Results": [
   172  //                                         {
   173  //                                             "Embedded": false,
   174  //                                             "Name": "",
   175  //                                             "Tag": "",
   176  //                                             "Type": {
   177  //                                                 "@type": "/gno.PrimitiveType",
   178  //                                                 "value": "16"
   179  //                                             }
   180  //                                         }
   181  //                                     ]
   182  //                                 }
   183  //                             }
   184  //                         ],
   185  //                         "PkgPath": "gno.land/r/demo/tests"
   186  //                     },
   187  //                     "Methods": [],
   188  //                     "Name": "Stringer",
   189  //                     "PkgPath": "gno.land/r/demo/tests"
   190  //                 }
   191  //             }
   192  //         },
   193  //         {
   194  //             "T": {
   195  //                 "@type": "/gno.TypeType"
   196  //             },
   197  //             "V": {
   198  //                 "@type": "/gno.TypeValue",
   199  //                 "Type": {
   200  //                     "@type": "/gno.DeclaredType",
   201  //                     "Base": {
   202  //                         "@type": "/gno.StructType",
   203  //                         "Fields": [
   204  //                             {
   205  //                                 "Embedded": false,
   206  //                                 "Name": "Field",
   207  //                                 "Tag": "",
   208  //                                 "Type": {
   209  //                                     "@type": "/gno.PrimitiveType",
   210  //                                     "value": "16"
   211  //                                 }
   212  //                             }
   213  //                         ],
   214  //                         "PkgPath": "gno.land/r/demo/tests"
   215  //                     },
   216  //                     "Methods": [
   217  //                         {
   218  //                             "T": {
   219  //                                 "@type": "/gno.FuncType",
   220  //                                 "Params": [
   221  //                                     {
   222  //                                         "Embedded": false,
   223  //                                         "Name": "t",
   224  //                                         "Tag": "",
   225  //                                         "Type": {
   226  //                                             "@type": "/gno.PointerType",
   227  //                                             "Elt": {
   228  //                                                 "@type": "/gno.RefType",
   229  //                                                 "ID": "gno.land/r/demo/tests.TestRealmObject"
   230  //                                             }
   231  //                                         }
   232  //                                     }
   233  //                                 ],
   234  //                                 "Results": []
   235  //                             },
   236  //                             "V": {
   237  //                                 "@type": "/gno.FuncValue",
   238  //                                 "Closure": null,
   239  //                                 "FileName": "tests.gno",
   240  //                                 "IsMethod": true,
   241  //                                 "Name": "Modify",
   242  //                                 "NativeName": "",
   243  //                                 "NativePkg": "",
   244  //                                 "PkgPath": "gno.land/r/demo/tests",
   245  //                                 "Source": {
   246  //                                     "@type": "/gno.RefNode",
   247  //                                     "BlockNode": null,
   248  //                                     "Location": {
   249  //                                         "File": "tests.gno",
   250  //                                         "Line": "48",
   251  //                                         "Nonce": "0",
   252  //                                         "PkgPath": "gno.land/r/demo/tests"
   253  //                                     }
   254  //                                 },
   255  //                                 "Type": {
   256  //                                     "@type": "/gno.FuncType",
   257  //                                     "Params": [
   258  //                                         {
   259  //                                             "Embedded": false,
   260  //                                             "Name": "t",
   261  //                                             "Tag": "",
   262  //                                             "Type": {
   263  //                                                 "@type": "/gno.PointerType",
   264  //                                                 "Elt": {
   265  //                                                     "@type": "/gno.RefType",
   266  //                                                     "ID": "gno.land/r/demo/tests.TestRealmObject"
   267  //                                                 }
   268  //                                             }
   269  //                                         }
   270  //                                     ],
   271  //                                     "Results": []
   272  //                                 }
   273  //                             }
   274  //                         }
   275  //                     ],
   276  //                     "Name": "TestRealmObject",
   277  //                     "PkgPath": "gno.land/r/demo/tests"
   278  //                 }
   279  //             }
   280  //         },
   281  //         {
   282  //             "T": {
   283  //                 "@type": "/gno.TypeType"
   284  //             },
   285  //             "V": {
   286  //                 "@type": "/gno.TypeValue",
   287  //                 "Type": {
   288  //                     "@type": "/gno.DeclaredType",
   289  //                     "Base": {
   290  //                         "@type": "/gno.StructType",
   291  //                         "Fields": [
   292  //                             {
   293  //                                 "Embedded": false,
   294  //                                 "Name": "Name",
   295  //                                 "Tag": "",
   296  //                                 "Type": {
   297  //                                     "@type": "/gno.PrimitiveType",
   298  //                                     "value": "16"
   299  //                                 }
   300  //                             },
   301  //                             {
   302  //                                 "Embedded": false,
   303  //                                 "Name": "Child",
   304  //                                 "Tag": "",
   305  //                                 "Type": {
   306  //                                     "@type": "/gno.PointerType",
   307  //                                     "Elt": {
   308  //                                         "@type": "/gno.RefType",
   309  //                                         "ID": "gno.land/r/demo/tests.TestNode"
   310  //                                     }
   311  //                                 }
   312  //                             }
   313  //                         ],
   314  //                         "PkgPath": "gno.land/r/demo/tests"
   315  //                     },
   316  //                     "Methods": [],
   317  //                     "Name": "TestNode",
   318  //                     "PkgPath": "gno.land/r/demo/tests"
   319  //                 }
   320  //             }
   321  //         },
   322  //         {
   323  //             "T": {
   324  //                 "@type": "/gno.FuncType",
   325  //                 "Params": [
   326  //                     {
   327  //                         "Embedded": false,
   328  //                         "Name": "str",
   329  //                         "Tag": "",
   330  //                         "Type": {
   331  //                             "@type": "/gno.RefType",
   332  //                             "ID": "gno.land/r/demo/tests.Stringer"
   333  //                         }
   334  //                     }
   335  //                 ],
   336  //                 "Results": []
   337  //             },
   338  //             "V": {
   339  //                 "@type": "/gno.FuncValue",
   340  //                 "Closure": {
   341  //                     "@type": "/gno.RefValue",
   342  //                     "Escaped": true,
   343  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:3"
   344  //                 },
   345  //                 "FileName": "interfaces.gno",
   346  //                 "IsMethod": false,
   347  //                 "Name": "AddStringer",
   348  //                 "NativeName": "",
   349  //                 "NativePkg": "",
   350  //                 "PkgPath": "gno.land/r/demo/tests",
   351  //                 "Source": {
   352  //                     "@type": "/gno.RefNode",
   353  //                     "BlockNode": null,
   354  //                     "Location": {
   355  //                         "File": "interfaces.gno",
   356  //                         "Line": "13",
   357  //                         "Nonce": "0",
   358  //                         "PkgPath": "gno.land/r/demo/tests"
   359  //                     }
   360  //                 },
   361  //                 "Type": {
   362  //                     "@type": "/gno.FuncType",
   363  //                     "Params": [
   364  //                         {
   365  //                             "Embedded": false,
   366  //                             "Name": "str",
   367  //                             "Tag": "",
   368  //                             "Type": {
   369  //                                 "@type": "/gno.RefType",
   370  //                                 "ID": "gno.land/r/demo/tests.Stringer"
   371  //                             }
   372  //                         }
   373  //                     ],
   374  //                     "Results": []
   375  //                 }
   376  //             }
   377  //         },
   378  //         {
   379  //             "T": {
   380  //                 "@type": "/gno.FuncType",
   381  //                 "Params": [
   382  //                     {
   383  //                         "Embedded": false,
   384  //                         "Name": "path",
   385  //                         "Tag": "",
   386  //                         "Type": {
   387  //                             "@type": "/gno.PrimitiveType",
   388  //                             "value": "16"
   389  //                         }
   390  //                     }
   391  //                 ],
   392  //                 "Results": [
   393  //                     {
   394  //                         "Embedded": false,
   395  //                         "Name": "",
   396  //                         "Tag": "",
   397  //                         "Type": {
   398  //                             "@type": "/gno.PrimitiveType",
   399  //                             "value": "16"
   400  //                         }
   401  //                     }
   402  //                 ]
   403  //             },
   404  //             "V": {
   405  //                 "@type": "/gno.FuncValue",
   406  //                 "Closure": {
   407  //                     "@type": "/gno.RefValue",
   408  //                     "Escaped": true,
   409  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:3"
   410  //                 },
   411  //                 "FileName": "interfaces.gno",
   412  //                 "IsMethod": false,
   413  //                 "Name": "Render",
   414  //                 "NativeName": "",
   415  //                 "NativePkg": "",
   416  //                 "PkgPath": "gno.land/r/demo/tests",
   417  //                 "Source": {
   418  //                     "@type": "/gno.RefNode",
   419  //                     "BlockNode": null,
   420  //                     "Location": {
   421  //                         "File": "interfaces.gno",
   422  //                         "Line": "20",
   423  //                         "Nonce": "0",
   424  //                         "PkgPath": "gno.land/r/demo/tests"
   425  //                     }
   426  //                 },
   427  //                 "Type": {
   428  //                     "@type": "/gno.FuncType",
   429  //                     "Params": [
   430  //                         {
   431  //                             "Embedded": false,
   432  //                             "Name": "path",
   433  //                             "Tag": "",
   434  //                             "Type": {
   435  //                                 "@type": "/gno.PrimitiveType",
   436  //                                 "value": "16"
   437  //                             }
   438  //                         }
   439  //                     ],
   440  //                     "Results": [
   441  //                         {
   442  //                             "Embedded": false,
   443  //                             "Name": "",
   444  //                             "Tag": "",
   445  //                             "Type": {
   446  //                                 "@type": "/gno.PrimitiveType",
   447  //                                 "value": "16"
   448  //                             }
   449  //                         }
   450  //                     ]
   451  //                 }
   452  //             }
   453  //         },
   454  //         {
   455  //             "T": {
   456  //                 "@type": "/gno.FuncType",
   457  //                 "Params": [],
   458  //                 "Results": []
   459  //             },
   460  //             "V": {
   461  //                 "@type": "/gno.FuncValue",
   462  //                 "Closure": {
   463  //                     "@type": "/gno.RefValue",
   464  //                     "Escaped": true,
   465  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   466  //                 },
   467  //                 "FileName": "tests.gno",
   468  //                 "IsMethod": false,
   469  //                 "Name": "IncCounter",
   470  //                 "NativeName": "",
   471  //                 "NativePkg": "",
   472  //                 "PkgPath": "gno.land/r/demo/tests",
   473  //                 "Source": {
   474  //                     "@type": "/gno.RefNode",
   475  //                     "BlockNode": null,
   476  //                     "Location": {
   477  //                         "File": "tests.gno",
   478  //                         "Line": "11",
   479  //                         "Nonce": "0",
   480  //                         "PkgPath": "gno.land/r/demo/tests"
   481  //                     }
   482  //                 },
   483  //                 "Type": {
   484  //                     "@type": "/gno.FuncType",
   485  //                     "Params": [],
   486  //                     "Results": []
   487  //                 }
   488  //             }
   489  //         },
   490  //         {
   491  //             "T": {
   492  //                 "@type": "/gno.FuncType",
   493  //                 "Params": [],
   494  //                 "Results": [
   495  //                     {
   496  //                         "Embedded": false,
   497  //                         "Name": "",
   498  //                         "Tag": "",
   499  //                         "Type": {
   500  //                             "@type": "/gno.PrimitiveType",
   501  //                             "value": "32"
   502  //                         }
   503  //                     }
   504  //                 ]
   505  //             },
   506  //             "V": {
   507  //                 "@type": "/gno.FuncValue",
   508  //                 "Closure": {
   509  //                     "@type": "/gno.RefValue",
   510  //                     "Escaped": true,
   511  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   512  //                 },
   513  //                 "FileName": "tests.gno",
   514  //                 "IsMethod": false,
   515  //                 "Name": "Counter",
   516  //                 "NativeName": "",
   517  //                 "NativePkg": "",
   518  //                 "PkgPath": "gno.land/r/demo/tests",
   519  //                 "Source": {
   520  //                     "@type": "/gno.RefNode",
   521  //                     "BlockNode": null,
   522  //                     "Location": {
   523  //                         "File": "tests.gno",
   524  //                         "Line": "15",
   525  //                         "Nonce": "0",
   526  //                         "PkgPath": "gno.land/r/demo/tests"
   527  //                     }
   528  //                 },
   529  //                 "Type": {
   530  //                     "@type": "/gno.FuncType",
   531  //                     "Params": [],
   532  //                     "Results": [
   533  //                         {
   534  //                             "Embedded": false,
   535  //                             "Name": "",
   536  //                             "Tag": "",
   537  //                             "Type": {
   538  //                                 "@type": "/gno.PrimitiveType",
   539  //                                 "value": "32"
   540  //                             }
   541  //                         }
   542  //                     ]
   543  //                 }
   544  //             }
   545  //         },
   546  //         {
   547  //             "T": {
   548  //                 "@type": "/gno.FuncType",
   549  //                 "Params": [],
   550  //                 "Results": [
   551  //                     {
   552  //                         "Embedded": false,
   553  //                         "Name": "",
   554  //                         "Tag": "",
   555  //                         "Type": {
   556  //                             "@type": "/gno.PrimitiveType",
   557  //                             "value": "16"
   558  //                         }
   559  //                     }
   560  //                 ]
   561  //             },
   562  //             "V": {
   563  //                 "@type": "/gno.FuncValue",
   564  //                 "Closure": {
   565  //                     "@type": "/gno.RefValue",
   566  //                     "Escaped": true,
   567  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   568  //                 },
   569  //                 "FileName": "tests.gno",
   570  //                 "IsMethod": false,
   571  //                 "Name": "CurrentRealmPath",
   572  //                 "NativeName": "",
   573  //                 "NativePkg": "",
   574  //                 "PkgPath": "gno.land/r/demo/tests",
   575  //                 "Source": {
   576  //                     "@type": "/gno.RefNode",
   577  //                     "BlockNode": null,
   578  //                     "Location": {
   579  //                         "File": "tests.gno",
   580  //                         "Line": "19",
   581  //                         "Nonce": "0",
   582  //                         "PkgPath": "gno.land/r/demo/tests"
   583  //                     }
   584  //                 },
   585  //                 "Type": {
   586  //                     "@type": "/gno.FuncType",
   587  //                     "Params": [],
   588  //                     "Results": [
   589  //                         {
   590  //                             "Embedded": false,
   591  //                             "Name": "",
   592  //                             "Tag": "",
   593  //                             "Type": {
   594  //                                 "@type": "/gno.PrimitiveType",
   595  //                                 "value": "16"
   596  //                             }
   597  //                         }
   598  //                     ]
   599  //                 }
   600  //             }
   601  //         },
   602  //         {
   603  //             "T": {
   604  //                 "@type": "/gno.FuncType",
   605  //                 "Params": [],
   606  //                 "Results": [
   607  //                     {
   608  //                         "Embedded": false,
   609  //                         "Name": "",
   610  //                         "Tag": "",
   611  //                         "Type": {
   612  //                             "@type": "/gno.RefType",
   613  //                             "ID": "std.Address"
   614  //                         }
   615  //                     }
   616  //                 ]
   617  //             },
   618  //             "V": {
   619  //                 "@type": "/gno.FuncValue",
   620  //                 "Closure": {
   621  //                     "@type": "/gno.RefValue",
   622  //                     "Escaped": true,
   623  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   624  //                 },
   625  //                 "FileName": "tests.gno",
   626  //                 "IsMethod": false,
   627  //                 "Name": "InitOrigCaller",
   628  //                 "NativeName": "",
   629  //                 "NativePkg": "",
   630  //                 "PkgPath": "gno.land/r/demo/tests",
   631  //                 "Source": {
   632  //                     "@type": "/gno.RefNode",
   633  //                     "BlockNode": null,
   634  //                     "Location": {
   635  //                         "File": "tests.gno",
   636  //                         "Line": "25",
   637  //                         "Nonce": "0",
   638  //                         "PkgPath": "gno.land/r/demo/tests"
   639  //                     }
   640  //                 },
   641  //                 "Type": {
   642  //                     "@type": "/gno.FuncType",
   643  //                     "Params": [],
   644  //                     "Results": [
   645  //                         {
   646  //                             "Embedded": false,
   647  //                             "Name": "",
   648  //                             "Tag": "",
   649  //                             "Type": {
   650  //                                 "@type": "/gno.RefType",
   651  //                                 "ID": "std.Address"
   652  //                             }
   653  //                         }
   654  //                     ]
   655  //                 }
   656  //             }
   657  //         },
   658  //         {
   659  //             "T": {
   660  //                 "@type": "/gno.FuncType",
   661  //                 "Params": [],
   662  //                 "Results": []
   663  //             },
   664  //             "V": {
   665  //                 "@type": "/gno.FuncValue",
   666  //                 "Closure": {
   667  //                     "@type": "/gno.RefValue",
   668  //                     "Escaped": true,
   669  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   670  //                 },
   671  //                 "FileName": "tests.gno",
   672  //                 "IsMethod": false,
   673  //                 "Name": "AssertOriginCall",
   674  //                 "NativeName": "",
   675  //                 "NativePkg": "",
   676  //                 "PkgPath": "gno.land/r/demo/tests",
   677  //                 "Source": {
   678  //                     "@type": "/gno.RefNode",
   679  //                     "BlockNode": null,
   680  //                     "Location": {
   681  //                         "File": "tests.gno",
   682  //                         "Line": "29",
   683  //                         "Nonce": "0",
   684  //                         "PkgPath": "gno.land/r/demo/tests"
   685  //                     }
   686  //                 },
   687  //                 "Type": {
   688  //                     "@type": "/gno.FuncType",
   689  //                     "Params": [],
   690  //                     "Results": []
   691  //                 }
   692  //             }
   693  //         },
   694  //         {
   695  //             "T": {
   696  //                 "@type": "/gno.FuncType",
   697  //                 "Params": [],
   698  //                 "Results": [
   699  //                     {
   700  //                         "Embedded": false,
   701  //                         "Name": "",
   702  //                         "Tag": "",
   703  //                         "Type": {
   704  //                             "@type": "/gno.PrimitiveType",
   705  //                             "value": "4"
   706  //                         }
   707  //                     }
   708  //                 ]
   709  //             },
   710  //             "V": {
   711  //                 "@type": "/gno.FuncValue",
   712  //                 "Closure": {
   713  //                     "@type": "/gno.RefValue",
   714  //                     "Escaped": true,
   715  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   716  //                 },
   717  //                 "FileName": "tests.gno",
   718  //                 "IsMethod": false,
   719  //                 "Name": "IsOriginCall",
   720  //                 "NativeName": "",
   721  //                 "NativePkg": "",
   722  //                 "PkgPath": "gno.land/r/demo/tests",
   723  //                 "Source": {
   724  //                     "@type": "/gno.RefNode",
   725  //                     "BlockNode": null,
   726  //                     "Location": {
   727  //                         "File": "tests.gno",
   728  //                         "Line": "33",
   729  //                         "Nonce": "0",
   730  //                         "PkgPath": "gno.land/r/demo/tests"
   731  //                     }
   732  //                 },
   733  //                 "Type": {
   734  //                     "@type": "/gno.FuncType",
   735  //                     "Params": [],
   736  //                     "Results": [
   737  //                         {
   738  //                             "Embedded": false,
   739  //                             "Name": "",
   740  //                             "Tag": "",
   741  //                             "Type": {
   742  //                                 "@type": "/gno.PrimitiveType",
   743  //                                 "value": "4"
   744  //                             }
   745  //                         }
   746  //                     ]
   747  //                 }
   748  //             }
   749  //         },
   750  //         {
   751  //             "T": {
   752  //                 "@type": "/gno.FuncType",
   753  //                 "Params": [
   754  //                     {
   755  //                         "Embedded": false,
   756  //                         "Name": "t",
   757  //                         "Tag": "",
   758  //                         "Type": {
   759  //                             "@type": "/gno.PointerType",
   760  //                             "Elt": {
   761  //                                 "@type": "/gno.RefType",
   762  //                                 "ID": "gno.land/r/demo/tests.TestRealmObject"
   763  //                             }
   764  //                         }
   765  //                     }
   766  //                 ],
   767  //                 "Results": []
   768  //             },
   769  //             "V": {
   770  //                 "@type": "/gno.FuncValue",
   771  //                 "Closure": {
   772  //                     "@type": "/gno.RefValue",
   773  //                     "Escaped": true,
   774  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   775  //                 },
   776  //                 "FileName": "tests.gno",
   777  //                 "IsMethod": false,
   778  //                 "Name": "ModifyTestRealmObject",
   779  //                 "NativeName": "",
   780  //                 "NativePkg": "",
   781  //                 "PkgPath": "gno.land/r/demo/tests",
   782  //                 "Source": {
   783  //                     "@type": "/gno.RefNode",
   784  //                     "BlockNode": null,
   785  //                     "Location": {
   786  //                         "File": "tests.gno",
   787  //                         "Line": "44",
   788  //                         "Nonce": "0",
   789  //                         "PkgPath": "gno.land/r/demo/tests"
   790  //                     }
   791  //                 },
   792  //                 "Type": {
   793  //                     "@type": "/gno.FuncType",
   794  //                     "Params": [
   795  //                         {
   796  //                             "Embedded": false,
   797  //                             "Name": "t",
   798  //                             "Tag": "",
   799  //                             "Type": {
   800  //                                 "@type": "/gno.PointerType",
   801  //                                 "Elt": {
   802  //                                     "@type": "/gno.RefType",
   803  //                                     "ID": "gno.land/r/demo/tests.TestRealmObject"
   804  //                                 }
   805  //                             }
   806  //                         }
   807  //                     ],
   808  //                     "Results": []
   809  //                 }
   810  //             }
   811  //         },
   812  //         {
   813  //             "T": {
   814  //                 "@type": "/gno.FuncType",
   815  //                 "Params": [],
   816  //                 "Results": []
   817  //             },
   818  //             "V": {
   819  //                 "@type": "/gno.FuncValue",
   820  //                 "Closure": {
   821  //                     "@type": "/gno.RefValue",
   822  //                     "Escaped": true,
   823  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   824  //                 },
   825  //                 "FileName": "tests.gno",
   826  //                 "IsMethod": false,
   827  //                 "Name": "InitTestNodes",
   828  //                 "NativeName": "",
   829  //                 "NativePkg": "",
   830  //                 "PkgPath": "gno.land/r/demo/tests",
   831  //                 "Source": {
   832  //                     "@type": "/gno.RefNode",
   833  //                     "BlockNode": null,
   834  //                     "Location": {
   835  //                         "File": "tests.gno",
   836  //                         "Line": "66",
   837  //                         "Nonce": "0",
   838  //                         "PkgPath": "gno.land/r/demo/tests"
   839  //                     }
   840  //                 },
   841  //                 "Type": {
   842  //                     "@type": "/gno.FuncType",
   843  //                     "Params": [],
   844  //                     "Results": []
   845  //                 }
   846  //             }
   847  //         },
   848  //         {
   849  //             "T": {
   850  //                 "@type": "/gno.FuncType",
   851  //                 "Params": [],
   852  //                 "Results": []
   853  //             },
   854  //             "V": {
   855  //                 "@type": "/gno.FuncValue",
   856  //                 "Closure": {
   857  //                     "@type": "/gno.RefValue",
   858  //                     "Escaped": true,
   859  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   860  //                 },
   861  //                 "FileName": "tests.gno",
   862  //                 "IsMethod": false,
   863  //                 "Name": "ModTestNodes",
   864  //                 "NativeName": "",
   865  //                 "NativePkg": "",
   866  //                 "PkgPath": "gno.land/r/demo/tests",
   867  //                 "Source": {
   868  //                     "@type": "/gno.RefNode",
   869  //                     "BlockNode": null,
   870  //                     "Location": {
   871  //                         "File": "tests.gno",
   872  //                         "Line": "71",
   873  //                         "Nonce": "0",
   874  //                         "PkgPath": "gno.land/r/demo/tests"
   875  //                     }
   876  //                 },
   877  //                 "Type": {
   878  //                     "@type": "/gno.FuncType",
   879  //                     "Params": [],
   880  //                     "Results": []
   881  //                 }
   882  //             }
   883  //         },
   884  //         {
   885  //             "T": {
   886  //                 "@type": "/gno.FuncType",
   887  //                 "Params": [],
   888  //                 "Results": []
   889  //             },
   890  //             "V": {
   891  //                 "@type": "/gno.FuncValue",
   892  //                 "Closure": {
   893  //                     "@type": "/gno.RefValue",
   894  //                     "Escaped": true,
   895  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   896  //                 },
   897  //                 "FileName": "tests.gno",
   898  //                 "IsMethod": false,
   899  //                 "Name": "PrintTestNodes",
   900  //                 "NativeName": "",
   901  //                 "NativePkg": "",
   902  //                 "PkgPath": "gno.land/r/demo/tests",
   903  //                 "Source": {
   904  //                     "@type": "/gno.RefNode",
   905  //                     "BlockNode": null,
   906  //                     "Location": {
   907  //                         "File": "tests.gno",
   908  //                         "Line": "79",
   909  //                         "Nonce": "0",
   910  //                         "PkgPath": "gno.land/r/demo/tests"
   911  //                     }
   912  //                 },
   913  //                 "Type": {
   914  //                     "@type": "/gno.FuncType",
   915  //                     "Params": [],
   916  //                     "Results": []
   917  //                 }
   918  //             }
   919  //         },
   920  //         {
   921  //             "T": {
   922  //                 "@type": "/gno.FuncType",
   923  //                 "Params": [],
   924  //                 "Results": [
   925  //                     {
   926  //                         "Embedded": false,
   927  //                         "Name": "",
   928  //                         "Tag": "",
   929  //                         "Type": {
   930  //                             "@type": "/gno.RefType",
   931  //                             "ID": "std.Realm"
   932  //                         }
   933  //                     }
   934  //                 ]
   935  //             },
   936  //             "V": {
   937  //                 "@type": "/gno.FuncValue",
   938  //                 "Closure": {
   939  //                     "@type": "/gno.RefValue",
   940  //                     "Escaped": true,
   941  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   942  //                 },
   943  //                 "FileName": "tests.gno",
   944  //                 "IsMethod": false,
   945  //                 "Name": "GetPrevRealm",
   946  //                 "NativeName": "",
   947  //                 "NativePkg": "",
   948  //                 "PkgPath": "gno.land/r/demo/tests",
   949  //                 "Source": {
   950  //                     "@type": "/gno.RefNode",
   951  //                     "BlockNode": null,
   952  //                     "Location": {
   953  //                         "File": "tests.gno",
   954  //                         "Line": "83",
   955  //                         "Nonce": "0",
   956  //                         "PkgPath": "gno.land/r/demo/tests"
   957  //                     }
   958  //                 },
   959  //                 "Type": {
   960  //                     "@type": "/gno.FuncType",
   961  //                     "Params": [],
   962  //                     "Results": [
   963  //                         {
   964  //                             "Embedded": false,
   965  //                             "Name": "",
   966  //                             "Tag": "",
   967  //                             "Type": {
   968  //                                 "@type": "/gno.RefType",
   969  //                                 "ID": "std.Realm"
   970  //                             }
   971  //                         }
   972  //                     ]
   973  //                 }
   974  //             }
   975  //         },
   976  //         {
   977  //             "T": {
   978  //                 "@type": "/gno.FuncType",
   979  //                 "Params": [],
   980  //                 "Results": [
   981  //                     {
   982  //                         "Embedded": false,
   983  //                         "Name": "",
   984  //                         "Tag": "",
   985  //                         "Type": {
   986  //                             "@type": "/gno.RefType",
   987  //                             "ID": "std.Realm"
   988  //                         }
   989  //                     }
   990  //                 ]
   991  //             },
   992  //             "V": {
   993  //                 "@type": "/gno.FuncValue",
   994  //                 "Closure": {
   995  //                     "@type": "/gno.RefValue",
   996  //                     "Escaped": true,
   997  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
   998  //                 },
   999  //                 "FileName": "tests.gno",
  1000  //                 "IsMethod": false,
  1001  //                 "Name": "GetRSubtestsPrevRealm",
  1002  //                 "NativeName": "",
  1003  //                 "NativePkg": "",
  1004  //                 "PkgPath": "gno.land/r/demo/tests",
  1005  //                 "Source": {
  1006  //                     "@type": "/gno.RefNode",
  1007  //                     "BlockNode": null,
  1008  //                     "Location": {
  1009  //                         "File": "tests.gno",
  1010  //                         "Line": "87",
  1011  //                         "Nonce": "0",
  1012  //                         "PkgPath": "gno.land/r/demo/tests"
  1013  //                     }
  1014  //                 },
  1015  //                 "Type": {
  1016  //                     "@type": "/gno.FuncType",
  1017  //                     "Params": [],
  1018  //                     "Results": [
  1019  //                         {
  1020  //                             "Embedded": false,
  1021  //                             "Name": "",
  1022  //                             "Tag": "",
  1023  //                             "Type": {
  1024  //                                 "@type": "/gno.RefType",
  1025  //                                 "ID": "std.Realm"
  1026  //                             }
  1027  //                         }
  1028  //                     ]
  1029  //                 }
  1030  //             }
  1031  //         },
  1032  //         {
  1033  //             "T": {
  1034  //                 "@type": "/gno.FuncType",
  1035  //                 "Params": [
  1036  //                     {
  1037  //                         "Embedded": false,
  1038  //                         "Name": "fn",
  1039  //                         "Tag": "",
  1040  //                         "Type": {
  1041  //                             "@type": "/gno.FuncType",
  1042  //                             "Params": [],
  1043  //                             "Results": []
  1044  //                         }
  1045  //                     }
  1046  //                 ],
  1047  //                 "Results": []
  1048  //             },
  1049  //             "V": {
  1050  //                 "@type": "/gno.FuncValue",
  1051  //                 "Closure": {
  1052  //                     "@type": "/gno.RefValue",
  1053  //                     "Escaped": true,
  1054  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:4"
  1055  //                 },
  1056  //                 "FileName": "tests.gno",
  1057  //                 "IsMethod": false,
  1058  //                 "Name": "Exec",
  1059  //                 "NativeName": "",
  1060  //                 "NativePkg": "",
  1061  //                 "PkgPath": "gno.land/r/demo/tests",
  1062  //                 "Source": {
  1063  //                     "@type": "/gno.RefNode",
  1064  //                     "BlockNode": null,
  1065  //                     "Location": {
  1066  //                         "File": "tests.gno",
  1067  //                         "Line": "91",
  1068  //                         "Nonce": "0",
  1069  //                         "PkgPath": "gno.land/r/demo/tests"
  1070  //                     }
  1071  //                 },
  1072  //                 "Type": {
  1073  //                     "@type": "/gno.FuncType",
  1074  //                     "Params": [
  1075  //                         {
  1076  //                             "Embedded": false,
  1077  //                             "Name": "fn",
  1078  //                             "Tag": "",
  1079  //                             "Type": {
  1080  //                                 "@type": "/gno.FuncType",
  1081  //                                 "Params": [],
  1082  //                                 "Results": []
  1083  //                             }
  1084  //                         }
  1085  //                     ],
  1086  //                     "Results": []
  1087  //                 }
  1088  //             }
  1089  //         },
  1090  //         {
  1091  //             "T": {
  1092  //                 "@type": "/gno.SliceType",
  1093  //                 "Elt": {
  1094  //                     "@type": "/gno.RefType",
  1095  //                     "ID": "gno.land/r/demo/tests.Stringer"
  1096  //                 },
  1097  //                 "Vrd": false
  1098  //             },
  1099  //             "V": {
  1100  //                 "@type": "/gno.SliceValue",
  1101  //                 "Base": {
  1102  //                     "@type": "/gno.RefValue",
  1103  //                     "Hash": "5e5535af7afef6f523a897c051944639ef56c057",
  1104  //                     "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:9"
  1105  //                 },
  1106  //                 "Length": "3",
  1107  //                 "Maxcap": "3",
  1108  //                 "Offset": "0"
  1109  //             }
  1110  //         },
  1111  //         {
  1112  //             "T": {
  1113  //                 "@type": "/gno.PrimitiveType",
  1114  //                 "value": "32"
  1115  //             }
  1116  //         },
  1117  //         {
  1118  //             "T": {
  1119  //                 "@type": "/gno.RefType",
  1120  //                 "ID": "std.Address"
  1121  //             },
  1122  //             "V": {
  1123  //                 "@type": "/gno.StringValue",
  1124  //                 "value": "g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm"
  1125  //             }
  1126  //         },
  1127  //         {
  1128  //             "T": {
  1129  //                 "@type": "/gno.PointerType",
  1130  //                 "Elt": {
  1131  //                     "@type": "/gno.RefType",
  1132  //                     "ID": "gno.land/r/demo/tests.TestNode"
  1133  //                 }
  1134  //             }
  1135  //         },
  1136  //         {
  1137  //             "T": {
  1138  //                 "@type": "/gno.PointerType",
  1139  //                 "Elt": {
  1140  //                     "@type": "/gno.RefType",
  1141  //                     "ID": "gno.land/r/demo/tests.TestNode"
  1142  //                 }
  1143  //             }
  1144  //         },
  1145  //         {
  1146  //             "T": {
  1147  //                 "@type": "/gno.PointerType",
  1148  //                 "Elt": {
  1149  //                     "@type": "/gno.RefType",
  1150  //                     "ID": "gno.land/r/demo/tests.TestNode"
  1151  //                 }
  1152  //             }
  1153  //         }
  1154  //     ]
  1155  // }
  1156  // d[0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:7]
  1157  // switchrealm["gno.land/r/demo/tests_foo"]
  1158  // switchrealm["gno.land/r/demo/tests_foo"]
  1159  // switchrealm["gno.land/r/demo/tests_foo"]
  1160  // switchrealm["gno.land/r/demo/tests_foo"]
  1161  // switchrealm["gno.land/r/demo/tests"]
  1162  // switchrealm["gno.land/r/demo/tests_test"]