MCPcopy Create free account
hub / github.com/coder/envbuilder / TestParse

Function TestParse

devcontainer/devcontainer_test.go:33–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestParse(t *testing.T) {
34 t.Parallel()
35 raw := `{
36 "build": {
37 "dockerfile": "Dockerfile",
38 "context": ".",
39 },
40 // Comments here!
41 "image": "codercom/code-server:latest"
42}`
43 parsed, err := devcontainer.Parse([]byte(raw))
44 require.NoError(t, err)
45 require.Equal(t, "Dockerfile", parsed.Build.Dockerfile)
46}
47
48func TestCompileWithFeatures(t *testing.T) {
49 t.Parallel()

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.92

Tested by

no test coverage detected