Skip to content

Missing support for global variable with initialization #33

@VincenzoArceri

Description

@VincenzoArceri

At 82cad83, tests testCpuUse and testCpuUseNI are ignored and do not pass due to missing support for global variable with initialization. For example, in go-lisa/go-testcases/cc/cpu-use.go:

package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"time"

	"github.com/hyperledger/fabric-chaincode-go/shim"
	pb "github.com/hyperledger/fabric-protos-go/peer"
)

//SimpleChaincode is the artifact of teh chaincode
type SimpleChaincode struct {
}

var nameSpace string = "org.cpu-use.Usage"  // global variable with initializaiton
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions