z1_filetest.gno

0.64 Kb ยท 36 lines
 1package main
 2
 3import (
 4	"std"
 5	"testing"
 6
 7	"gno.land/r/gnoland/faucet"
 8)
 9
10// mints ugnot to current realm
11func init() {
12	faucetaddr := std.DerivePkgAddr("gno.land/r/gnoland/faucet")
13	testing.IssueCoins(faucetaddr, std.Coins{{"ugnot", 200_000_000}})
14}
15
16// assert render with a path and no controllers
17func main() {
18	println(faucet.Render("path"))
19}
20
21// Output:
22// # Community Faucet.
23//
24// Status: active.
25// Balance: 200000000ugnot.
26// Total transfers:  (in 0 times).
27//
28// Package address: g17rgsdnfxzza0sdfsdma37sdwxagsz378833ca4
29//
30// Admin: g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5
31//
32//  Controllers:
33//
34//
35//
36// Per request limit: 350000000ugnot