Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chaincode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
袁邓@五瓣科技
chaincode
Commits
46b87768
Commit
46b87768
authored
Mar 26, 2020
by
刘星星@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gxh chaincode2.0
parent
08a90301
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2019 additions
and
0 deletions
+2019
-0
gongxianghui.go
src/github.com/gongxianghui2.0/gongxianghui.go
+1323
-0
gongxianghui2.0_test.go
src/github.com/gongxianghui2.0/gongxianghui2.0_test.go
+399
-0
gongxianghui_test.go
src/github.com/gongxianghui2.0/gongxianghui_test.go
+278
-0
gongxinghuileadger_test.go
src/github.com/gongxianghui2.0/gongxinghuileadger_test.go
+18
-0
testcc.go
src/github.com/testcc/testcc.go
+1
-0
No files found.
src/github.com/gongxianghui2.0/gongxianghui.go
0 → 100644
View file @
46b87768
This diff is collapsed.
Click to expand it.
src/github.com/gongxianghui2.0/gongxianghui2.0_test.go
0 → 100644
View file @
46b87768
This diff is collapsed.
Click to expand it.
src/github.com/gongxianghui2.0/gongxianghui_test.go
0 → 100644
View file @
46b87768
This diff is collapsed.
Click to expand it.
src/github.com/gongxianghui2.0/gongxinghuileadger_test.go
0 → 100644
View file @
46b87768
package
main
import
(
"fmt"
"github.com/hyperledger/fabric/core/chaincode/shim"
"testing"
)
func
TestInvokeTable
(
t
*
testing
.
T
){
cc
:=
new
(
GXHCC
)
stub
:=
shim
.
NewMockStub
(
"GXHCC"
,
cc
)
stub
.
MockInit
(
"init"
,
nil
)
responseByPutschema
:=
stub
.
MockInvoke
(
"invoke1"
,[][]
byte
{[]
byte
(
"InvokeTable"
),
[]
byte
(
"alibusi"
),[]
byte
(
inputC
)})
fmt
.
Printf
(
"Invoke status %d,message %s and payload %s
\n
"
,
responseByPutschema
.
Status
,
responseByPutschema
.
Message
,
string
(
responseByPutschema
.
Payload
))
}
src/github.com/testcc/testcc.go
0 → 100644
View file @
46b87768
package
testcc
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment