about summary refs log tree commit diff
path: root/lib/tests/misc.nix
Commit message (Collapse)AuthorAge
* Remove composableDerivation, closes #18763Frederik Rietdijk2018-12-30
|
* lib.isStorePath: fix `false` result when passed a path objectTim Cuthbertson2018-10-20
| | | | | Since `isStorePath` relies on comparing against builtins.storeDir (a string), we need to convert the input into a string as well.
* generators: make toPretty handle floats correctlyLéo Gaspard2018-10-15
|
* lib/tests: Add overrideExisting testsSilvan Mosberger2018-09-17
|
* Merge branch 'no-toPath'Shea Levy2018-09-06
|\
| * treewide: Remove uses of builtins.toPath.Shea Levy2018-05-22
| | | | | | | | | | | | | | | | toPath has confusing semantics and is never necessary; it can always either just be omitted or replaced by pre-concatenating `/.`. It has been marked as "!!! obsolete?" for more than 10 years in a C++ comment, hopefully removing it will let us properly deprecate and, eventually, remove it.
* | lib/recursiveUpdateUntil: add a test & release note for fixProfpatsch2018-08-15
| |
* | [bot]: remove unreferenced codevolth2018-07-20
| |
* | lib: bitAnd, bitOr, bitXor (bitsize-agnostic fallback function) (#41491)volth2018-06-10
| | | | | | | | | | | | | | | | | | | | | | | | * lib: bitAnd, bitOr, bitXor * lib: test for bitAnd, bitOr, bitXor * lib: bitsize-agnostic zipIntBits * lib: bitNot * lib: bitNot
* | Revert "lib: bitAnd, bitOr, bitXor"Profpatsch2018-06-05
| |
* | lib: test for bitAnd, bitOr, bitXorvolth2018-06-02
|/
* lib/generators: print paths without quotes & move function downProfpatsch2018-04-25
|
* lib/generators: introduce a sane default for `mkValueString`Profpatsch2018-03-29
| | | | | | | | | So far, `mkValueString` defaulted to `toString`, which is a bad match for most configuration file formats, especially because how booleans are formatted. This also improves error messages for unsupported types. Add a test to codify the formatting.
* lib.isStorePath: Fix derivation detectionShea Levy2018-03-09
|
* lib/generators: add mkValueString to mkKeyValueDefault generatorProfpatsch2017-11-22
| | | | | | | | This means the generation of values can now be influenced, even down from e.g. an INI generator. Breaks the interface of `mkKeyValueDefault` to match its interface to other generator functions. It might me sensible to rename `mkKeyValue` and `mkKeyValueSet` to conform to the `toX`-style of generator functions.
* lib/generators: put more information in toPretty lambdasProfpatsch2017-06-22
| | | | | | With `builtins.functionArgs` we can get some information if the first argument is an attrset and whether the contained fields have default values. Encode that into the pretty-printed lambda.
* lib/generators: toPrettyProfpatsch2017-06-22
| | | | `toPretty` implements a pretty printer for nix values.
* lib-tests: fix test for isStorePathDaiderd Jordan2017-06-09
|
* Add `isStorePath` tests (#26223)Profpatsch2017-05-30
|
* lib: Consolidate tests into one meta jobJohn Ericson2017-05-17