• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaFolds / InitialValues.jl / 248
90%

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2020 01:21AM UTC
Jobs 4
Files 2
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
248

push

travis-ci-com

web-flow
<a href="https://github.com/JuliaFolds/InitialValues.jl/commit/<a class=hub.com/JuliaFolds/InitialValues.jl/commit/3fc7112a98ea476d74e76863a22386f828ff304a">3fc7112a9<a href="https://github.com/JuliaFolds/InitialValues.jl/commit/3fc7112a98ea476d74e76863a22386f828ff304a">&quot;&gt;Deprecate `Init(op)` (#47)

Using `foldl(op, xf, collection; init = Init)` in Transducers.jl has
been very useful.  However, it requires a special handling of `Init`
because it is not in the &amp;quot;initializer&amp;quot; type hierarchy:

&amp;gt; ```julia
&amp;gt; initialize(::typeof(Init), op) = check_init(Init(op), Init, op)
&amp;gt; initialize(f::InitOf, op) = check_init(f(op), f, op)
&amp;gt; ```
&amp;gt; --- https://github.com/JuliaFolds/Transducers.jl/blob/</a><a class="double-link" href="https://github.com/JuliaFolds/InitialValues.jl/commit/<a class="double-link" href="https://github.com/JuliaFolds/InitialValues.jl/commit/e5bc17538f16a0cc2d89e128bc509b8b1efa6bfc">e5bc17538</a>">e5bc17538</a><a href="https://github.com/JuliaFolds/InitialValues.jl/commit/3fc7112a98ea476d74e76863a22386f828ff304a">/src/core.jl#L873-L874

A (failed) solution attempted was to move the initializer API to
InitialValues.jl:

https://github.com/JuliaFolds/InitialValues.jl/pull/35

However, it didn&#39;t work well because the initializer is tightly
coupled with `Transducers.start` API.  It looks like moving this to
Transducers.jl (or &quot;FoldsBase.jl&quot;) would be better:

* https://github.com/JuliaFolds/InitialValues.jl/pull/37: revert #35
* https://github.com/JuliaFolds/Transducers.jl/pull/289#issuecomment-633291202:
Explains the rationale to revert #35.

In order to treat `Init` in a unified &quot;initializer&quot; framework while
keeping InitialValues.jl self-contained, this PR starts the process of
removing `Init` from InitialValues.jl by deprecating it.  The new
interface is simply `InitialValue(op)`.  This is nice also because
`InitialValue(op) isa InitialValue` holds.

See also:
https://github.com/JuliaFolds/Transducers.jl/pull/341
(Refactoring initializer API; define `Init` in Transducers.jl)

3 of 3 new or added lines in 1 file covered. (100.0%)

50 of 55 relevant lines covered (90.91%)

60.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 248.1 06 Jul 2020 01:21AM UTC 0
90.91
Travis Job 248.1
2 248.2 06 Jul 2020 01:21AM UTC 0
83.64
Travis Job 248.2
3 248.3 06 Jul 2020 01:23AM UTC 0
90.2
Travis Job 248.3
4 248.4 06 Jul 2020 01:23AM UTC 0
90.91
Travis Job 248.4
Source Files on build 248
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #248
  • 3fc7112a on github
  • Prev Build on master (#243)
  • Next Build on master (#252)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc