...

Package metadata

import "github.com/hyperledger/fabric-sdk-go/test/metadata"
Overview
Index

Overview ▾

Package metadata contains variables used by tests

Variables

ChannelConfigPath is the relative path to the generated channel artifacts directory

var ChannelConfigPath = "test/fixtures/fabric/v1.4/channel"

CryptoConfigPath is the relative path to the generated crypto config directory

var CryptoConfigPath = "test/fixtures/fabric/v1/crypto-config"

Project is the Go project name relative to the Go Path

var Project = "github.com/hyperledger/fabric-sdk-go"

ProjectPath is the path to the source of fabric-sdk-go

var ProjectPath = ""

SDKConfigPath is the relative path to the SDK configuration test fixtures directory

var SDKConfigPath = "test/fixtures/config"

TestRunID is an identifier for the current run of tests

var TestRunID = ""

func GetProjectPath

func GetProjectPath() string

GetProjectPath returns the path to the source of fabric-sdk-go. More specifically, this function searches for the directory containing the project's go.mod file. This function must only be called from tests.