(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func TestPrepareNetworkLabels(t *testing.T) { |
| 94 | project := composetypes.Project{ |
| 95 | Name: "myProject", |
| 96 | Networks: composetypes.Networks(map[string]composetypes.NetworkConfig{"skynet": {}}), |
| 97 | } |
| 98 | prepareNetworks(&project) |
| 99 | assert.DeepEqual(t, project.Networks["skynet"].CustomLabels, composetypes.Labels(map[string]string{ |
| 100 | "com.docker.compose.network": "skynet", |
| 101 | "com.docker.compose.project": "myProject", |
| 102 | "com.docker.compose.version": api.ComposeVersion, |
| 103 | })) |
| 104 | } |
| 105 | |
| 106 | func TestBuildContainerMountOptions(t *testing.T) { |
| 107 | project := composetypes.Project{ |
nothing calls this directly
no test coverage detected