github.com/solo-io/cue@v0.4.7/cue/testdata/interpolation/042_multiline_interpolation.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: multiline interpolation
     4  #evalPartial
     5  -- in.cue --
     6  a1: """
     7  			before
     8  			\(4)
     9  			after
    10  			"""
    11  a2: """
    12  			before
    13  			\(4)
    14  
    15  			"""
    16  a3: """
    17  
    18  			\(4)
    19  			after
    20  			"""
    21  a4: """
    22  
    23  			\(4)
    24  
    25  			"""
    26  m1: """
    27  			before
    28  			\(
    29  	4)
    30  			after
    31  			"""
    32  m2: """
    33  			before
    34  			\(
    35  	4)
    36  
    37  			"""
    38  m3: """
    39  
    40  			\(
    41  
    42  	4)
    43  			after
    44  			"""
    45  m4: """
    46  
    47  			\(
    48  	4)
    49  
    50  			"""
    51  -- out/def --
    52  a1: """
    53          before
    54          4
    55          after
    56          """
    57  a2: """
    58          before
    59          4
    60          
    61          """
    62  a3: """
    63          
    64          4
    65          after
    66          """
    67  a4: """
    68          
    69          4
    70          
    71          """
    72  m1: """
    73          before
    74          4
    75          after
    76          """
    77  m2: """
    78          before
    79          4
    80          
    81          """
    82  m3: """
    83          
    84          4
    85          after
    86          """
    87  m4: """
    88          
    89          4
    90          
    91          """
    92  -- out/export --
    93  a1: """
    94          before
    95          4
    96          after
    97          """
    98  a2: """
    99          before
   100          4
   101          
   102          """
   103  a3: """
   104          
   105          4
   106          after
   107          """
   108  a4: """
   109          
   110          4
   111          
   112          """
   113  m1: """
   114          before
   115          4
   116          after
   117          """
   118  m2: """
   119          before
   120          4
   121          
   122          """
   123  m3: """
   124          
   125          4
   126          after
   127          """
   128  m4: """
   129          
   130          4
   131          
   132          """
   133  -- out/yaml --
   134  a1: |-
   135    before
   136    4
   137    after
   138  a2: |
   139    before
   140    4
   141  a3: |2-
   142  
   143    4
   144    after
   145  a4: |2
   146  
   147    4
   148  m1: |-
   149    before
   150    4
   151    after
   152  m2: |
   153    before
   154    4
   155  m3: |2-
   156  
   157    4
   158    after
   159  m4: |2
   160  
   161    4
   162  -- out/json --
   163  {"a1":"before\n4\nafter","a2":"before\n4\n","a3":"\n4\nafter","a4":"\n4\n","m1":"before\n4\nafter","m2":"before\n4\n","m3":"\n4\nafter","m4":"\n4\n"}
   164  -- out/legacy-debug --
   165  <0>{a1: "before\n4\nafter", a2: "before\n4\n", a3: "\n4\nafter", a4: "\n4\n", m1: "before\n4\nafter", m2: "before\n4\n", m3: "\n4\nafter", m4: "\n4\n"}
   166  -- out/compile --
   167  --- in.cue
   168  {
   169    a1: "before
   170    \(4)
   171    after"
   172    a2: "before
   173    \(4)
   174    "
   175    a3: "
   176    \(4)
   177    after"
   178    a4: "
   179    \(4)
   180    "
   181    m1: "before
   182    \(4)
   183    after"
   184    m2: "before
   185    \(4)
   186    "
   187    m3: "
   188    \(4)
   189    after"
   190    m4: "
   191    \(4)
   192    "
   193  }
   194  -- out/eval --
   195  (struct){
   196    a1: (string){ "before\n4\nafter" }
   197    a2: (string){ "before\n4\n" }
   198    a3: (string){ "\n4\nafter" }
   199    a4: (string){ "\n4\n" }
   200    m1: (string){ "before\n4\nafter" }
   201    m2: (string){ "before\n4\n" }
   202    m3: (string){ "\n4\nafter" }
   203    m4: (string){ "\n4\n" }
   204  }