5 Commits

Author SHA1 Message Date
Abhinav Gupta 4ca2606342 mapper_windows_test: assert.NotZero for nil check (#396)
Follow up to #394, specifically [this comment][1].

  [1]: https://github.com/alecthomas/kong/pull/394#discussion_r1421683093
2023-12-10 19:40:40 +11:00
Abhinav Gupta 3263463a7e Fix Windows tests, verify in CI (#394)
* ci: Test on Windows too

Adds a Windows test run to CI.
Go setup relies on GHA for this
because Hermit doesn't yet support Windows.

* fix(mapper_windows_test): assert.NotNil => assert.True

assert.NotNil does not exist.

* filecontent mapper: Handle error from directory

If we couldn't read because the source is a directory,
override the original error message.

* fix(test): Handle platform-specific "file not found" messages
2023-12-10 15:42:50 +11:00
Alec Thomas 81070a043b fix: os-specific builds 2022-06-21 22:36:59 +10:00
Alec Thomas e75e1ca88a refactor: switch to alecthomas/assert 2022-06-21 20:58:10 +10:00
David Shiflet 29685e7da6 treat \ as escape only before a separator 2022-05-16 13:03:54 -07:00