github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/p/demo/grc/grc777/dummy_test.gno (about)

     1  package grc777
     2  
     3  import (
     4  	"std"
     5  	"testing"
     6  )
     7  
     8  type dummyImpl struct{}
     9  
    10  // FIXME: this should fail.
    11  var _ IGRC777 = (*dummyImpl)(nil)
    12  
    13  func TestInterface(t *testing.T) {
    14  	var dummy IGRC777 = &dummyImpl{}
    15  }
    16  
    17  func (impl *dummyImpl) GetName() string                        { panic("not implemented") }
    18  func (impl *dummyImpl) GetSymbol() string                      { panic("not implemented") }
    19  func (impl *dummyImpl) GetDecimals() uint                      { panic("not implemented") }
    20  func (impl *dummyImpl) Granularity() (granularity uint64)      { panic("not implemented") }
    21  func (impl *dummyImpl) TotalSupply() (supply uint64)           { panic("not implemented") }
    22  func (impl *dummyImpl) BalanceOf(address std.Address) uint64   { panic("not implemented") }
    23  func (impl *dummyImpl) Burn(amount uint64, data []byte)        { panic("not implemented") }
    24  func (impl *dummyImpl) AuthorizeOperator(operator std.Address) { panic("not implemented") }
    25  func (impl *dummyImpl) RevokeOperator(operators std.Address)   { panic("not implemented") }
    26  func (impl *dummyImpl) DefaultOperators() []std.Address        { panic("not implemented") }
    27  func (impl *dummyImpl) Send(recipient std.Address, amount uint64, data []byte) {
    28  	panic("not implemented")
    29  }
    30  
    31  func (impl *dummyImpl) IsOperatorFor(operator, tokenHolder std.Address) bool {
    32  	panic("not implemented")
    33  }
    34  
    35  func (impl *dummyImpl) OperatorSend(sender, recipient std.Address, amount uint64, data, operatorData []byte) {
    36  	panic("not implemented")
    37  }
    38  
    39  func (impl *dummyImpl) OperatorBurn(account std.Address, amount uint64, data, operatorData []byte) {
    40  	panic("not implemented")
    41  }