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

gernest / bearcub / 9 / 1
83%
master: 83%

Build:
DEFAULT BRANCH: master
Ran 19 Aug 2017 03:49PM UTC
Files 1
Run time 0s
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

19 Aug 2017 03:48PM UTC coverage: 82.5% (-8.0%) from 90.476%
9.1

Pull #3

travis-ci

web-flow
Use text/template to render variable replacement

This is a new implementation of ReplaceString which uses text/template for heavy lifting.

What it does is first the input is rewritten to tags that are going to be identified by text/emplate, then the rewritten template is passed to text/template for rendering.

The special tags are `<<` and `>>` so,  `{host}` becomes `<< replace "host">>` where replace is the template function with signature `func(string)string`

This will work well with json, the fact here is we can later change special tags to be unique to any particular text format that way the function can be used on xml etc.

The replaced variables are handled by the end user meaning not only can json objects be adressed but aslo arbitrary logic can be handled since templating is separaed from replacement
Pull Request #3: Use text/template to render variable replacement

99 of 120 relevant lines covered (82.5%)

12.87 hits per line

Source Files on job 9.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9
  • Travis Job 9.1
  • b175fb48 on github
  • Prev Job for on master (#7.1)
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