func TestBuildDefaultGensisBlock(t *testing.T) {
	assert := assert.New(t)
	monkey.Patch(tools.PathExists, func(string) bool {
		return false
	})
	block, err := GenerateGenesisBlock()
	assert.NotNil(block)
	assert.Nil(err)
	monkey.UnpatchAll()
}
test build default genesis block
package config
import (
	"errors"
	"github.com/DSiSc/craft/types"
	"github.com/DSiSc/justitia/compiler"
	"github.com/DSiSc/justitia/tools"
	"github.com/DSiSc/monkey"
	"github.com/DSiSc/repository"
	"github.com/stretchr/testify/assert"
	"reflect"
	"testing"
)