MCPcopy
hub / github.com/dgraph-io/dgraph / TestDgraphVersion

Function TestDgraphVersion

dgraph/cmd/version/version_test.go:23–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestDgraphVersion(t *testing.T) {
24 tmpPath := t.TempDir()
25 configPath := filepath.Join(tmpPath, "config.yml")
26 configFile, err := os.Create(configPath)
27 require.NoError(t, err)
28 defer configFile.Close()
29 require.NoError(t, testutil.Exec(testutil.DgraphBinaryPath(), "version", "--config", configPath))
30}

Callers

nothing calls this directly

Calls 4

ExecFunction · 0.92
DgraphBinaryPathFunction · 0.92
CreateMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected