You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/compose/hover_test.go
+39Lines changed: 39 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -451,6 +451,45 @@ services:
451
451
},
452
452
},
453
453
},
454
+
{
455
+
name: "container_name attribute on services",
456
+
content: `
457
+
services:
458
+
test:
459
+
container_name: abc`,
460
+
line: 3,
461
+
character: 7,
462
+
result: &protocol.Hover{
463
+
Contents: protocol.MarkupContent{
464
+
Kind: protocol.MarkupKindMarkdown,
465
+
Value: "Specify a custom container name, rather than a generated default name.\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#container_name)",
466
+
},
467
+
},
468
+
},
469
+
{
470
+
name: "container_name attribute with a comment before it",
Value: "Specify a custom container name, rather than a generated default name.\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#container_name)",
478
+
},
479
+
},
480
+
},
481
+
{
482
+
name: "container_name attribute with a comment before it (CRLF)",
Value: "Specify a custom container name, rather than a generated default name.\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#container_name)",
0 commit comments