================================================================================
projects/evaluatorSettings/basic
================================================================================

amends ".../snippetTest.pkl"

examples {
  ["all env vars come from settings"] {
    read*("env:**")
  }
  ["all props come from settings"] {
    read*("prop:**")
  }
  ["cannot import modulepath because it is not allowed"] {
    module.catch(() -> import("modulepath:/com/apple/pkl/core/stdlib/release.pkl"))
    module.catch(() -> read("modulepath:/com/apple/pkl/core/brokenModule1.pkl"))
  }
}

--------------------------------------------------------------------------------

(module
  (moduleHeader
    (extendsOrAmendsClause
      (stringConstant)))
  (classProperty
    (identifier)
    (objectBody
      (objectEntry
        (slStringLiteral)
        (objectBody
          (objectElement
            (readGlobExpr
              (parenthesizedExpr
                (slStringLiteral))))))
      (objectEntry
        (slStringLiteral)
        (objectBody
          (objectElement
            (readGlobExpr
              (parenthesizedExpr
                (slStringLiteral))))))
      (objectEntry
        (slStringLiteral)
        (objectBody
          (objectElement
            (methodCallExpr
              (moduleExpr)
              (identifier)
              (argumentList
                (functionLiteral
                  (parameterList)
                  (importExpr
                    (stringConstant))))))
          (objectElement
            (methodCallExpr
              (moduleExpr)
              (identifier)
              (argumentList
                (functionLiteral
                  (parameterList)
                  (readExpr
                    (parenthesizedExpr
                      (slStringLiteral))))))))))))
