MCPcopy Index your code
hub / github.com/docker/cli / TestLoadWithInterpolationCastFull

Function TestLoadWithInterpolationCastFull

cli/compose/loader/loader_test.go:607–762  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

605}
606
607func TestLoadWithInterpolationCastFull(t *testing.T) {
608 dict, err := ParseYAML([]byte(`
609version: "3.8"
610services:
611 web:
612 configs:
613 - source: appconfig
614 mode: $theint
615 secrets:
616 - source: super
617 mode: $theint
618 healthcheck:
619 retries: ${theint}
620 disable: $thebool
621 deploy:
622 replicas: $theint
623 update_config:
624 parallelism: $theint
625 max_failure_ratio: $thefloat
626 rollback_config:
627 parallelism: $theint
628 max_failure_ratio: $thefloat
629 restart_policy:
630 max_attempts: $theint
631 placement:
632 max_replicas_per_node: $theint
633 ports:
634 - $theint
635 - "34567"
636 - target: $theint
637 published: $theint
638 ulimits:
639 nproc: $theint
640 nofile:
641 hard: $theint
642 soft: $theint
643 privileged: $thebool
644 read_only: $thebool
645 stdin_open: ${thebool}
646 tty: $thebool
647 volumes:
648 - source: data
649 type: volume
650 read_only: $thebool
651 volume:
652 nocopy: $thebool
653
654configs:
655 appconfig:
656 external: $thebool
657secrets:
658 super:
659 external: $thebool
660volumes:
661 data:
662 external: $thebool
663networks:
664 front:

Callers

nothing calls this directly

Calls 5

ParseYAMLFunction · 0.85
buildConfigDetailsFunction · 0.85
uint64PtrFunction · 0.85
LoadFunction · 0.70
uint32PtrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…