pulumi/pkg
joeduffy 4cf6be0f07 Add some property binding tests
This change adds a handful of property binding tests.

It also fixes:

* AsName should assert IsName.

* Enumerate properties stably, so that it is deterministic.

* Do not issue errors about unrecognized properties for the special
  `mu/extension` type.  It's entire purpose in life is to offer an
  entirely custom set of properties, which the provider is meant to
  validate.

* Default to an empty map if properties are missing.

* Add a "/" to the end of the namespace from the workspace, if present.

And rearranges some code:

* Rename the LiteralX types to XLiteral; e.g., StringLiteral instead of
  LiteralString.  I kept typing XLiteral erroneously.

* Eliminate the Mu prefix on all of the predefined type and service
  functions and types.  It's superfluous and reads nicer this way.

* Swap the order of "expected" vs. "got" in the error message about
  incorrect property types.  It used to say "got %v, expected %v"; I
  personally find that it is more helpful if it says "expected %v,
  got %v".  YMMV.
2016-12-02 14:33:22 -08:00
..
ast Add some property binding tests 2016-12-02 14:33:22 -08:00
compiler Add some property binding tests 2016-12-02 14:33:22 -08:00
diag Annotate a bunch of TODOs with work item numbers 2016-11-23 12:30:02 -08:00
encoding Implement property binding and typechecking 2016-12-02 13:23:18 -08:00
errors Add some property binding tests 2016-12-02 14:33:22 -08:00
util Go back to glog.Fail 2016-12-01 11:50:19 -08:00
workspace Add some property binding tests 2016-12-02 14:33:22 -08:00