(helpers test.Helpers, name string, opts ...string)
| 36 | ) |
| 37 | |
| 38 | func pushToIPFS(helpers test.Helpers, name string, opts ...string) string { |
| 39 | var ipfsCID string |
| 40 | cmd := helpers.Command("push", "ipfs://"+name) |
| 41 | cmd.WithArgs(opts...) |
| 42 | cmd.Run(&test.Expected{ |
| 43 | Output: func(stdout string, t tig.T) { |
| 44 | lines := strings.Split(stdout, "\n") |
| 45 | assert.Equal(t, len(lines) >= 2, true) |
| 46 | ipfsCID = lines[len(lines)-2] |
| 47 | }, |
| 48 | }) |
| 49 | return ipfsCID |
| 50 | } |
| 51 | |
| 52 | func TestIPFSNerdctlRegistry(t *testing.T) { |
| 53 | testCase := nerdtest.Setup() |
no test coverage detected
searching dependent graphs…