github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/cmd/gno/testdata/gno_test/realm_sync.txtar (about) 1 # Test Realm instruction updated 2 3 gno test -v . -update-golden-tests 4 5 ! stdout .+ # stdout should be empty 6 stderr '=== RUN file/x_filetest.gno' 7 stderr '--- PASS: file/x_filetest.gno \(\d\.\d\ds\)' 8 stderr 'ok \. \d\.\d\ds' 9 10 cmp x_filetest.gno x_filetest.gno.golden 11 12 -- x_filetest.gno -- 13 // PKGPATH: gno.land/r/x 14 package x 15 16 var x int 17 18 func main() { 19 x = 1 20 } 21 22 // Realm: 23 // xxx 24 25 -- x_filetest.gno.golden -- 26 // PKGPATH: gno.land/r/x 27 package x 28 29 var x int 30 31 func main() { 32 x = 1 33 } 34 35 // Realm: 36 // switchrealm["gno.land/r/x"] 37 // u[58cde29876a8d185e30c727361981efb068f4726:2]={ 38 // "Blank": {}, 39 // "ObjectInfo": { 40 // "ID": "58cde29876a8d185e30c727361981efb068f4726:2", 41 // "IsEscaped": true, 42 // "ModTime": "3", 43 // "RefCount": "2" 44 // }, 45 // "Parent": null, 46 // "Source": { 47 // "@type": "/gno.RefNode", 48 // "BlockNode": null, 49 // "Location": { 50 // "File": "", 51 // "Line": "0", 52 // "Nonce": "0", 53 // "PkgPath": "gno.land/r/x" 54 // } 55 // }, 56 // "Values": [ 57 // { 58 // "T": { 59 // "@type": "/gno.FuncType", 60 // "Params": [], 61 // "Results": [] 62 // }, 63 // "V": { 64 // "@type": "/gno.FuncValue", 65 // "Closure": { 66 // "@type": "/gno.RefValue", 67 // "Escaped": true, 68 // "ObjectID": "58cde29876a8d185e30c727361981efb068f4726:3" 69 // }, 70 // "FileName": "main.gno", 71 // "IsMethod": false, 72 // "Name": "main", 73 // "NativeName": "", 74 // "NativePkg": "", 75 // "PkgPath": "gno.land/r/x", 76 // "Source": { 77 // "@type": "/gno.RefNode", 78 // "BlockNode": null, 79 // "Location": { 80 // "File": "main.gno", 81 // "Line": "6", 82 // "Nonce": "0", 83 // "PkgPath": "gno.land/r/x" 84 // } 85 // }, 86 // "Type": { 87 // "@type": "/gno.FuncType", 88 // "Params": [], 89 // "Results": [] 90 // } 91 // } 92 // }, 93 // { 94 // "N": "AQAAAAAAAAA=", 95 // "T": { 96 // "@type": "/gno.PrimitiveType", 97 // "value": "32" 98 // } 99 // } 100 // ] 101 // } 102