Search Gear #9 – Drone.io and More Testing!

Search Gear Notes

Search Gear Notes

Drone.io come through with an Academic account with free repos’! Nice one Brad @droneio.

A-Level results day so no much Go-ing on!

But re ran my test code after system restart – just in case it was anything I did in yesterdays session which didn’t continue through to today and SUCESS!

Simon-Harpers-iMac:searchgear sharper$ go run searchgear.go
(string) (len=25) "piJNV9nZS5dYDxTTc6H"

Thank You Gods of Go!

So lets rebuild some of the config work I neglected yesterday and the day before while trying to get Go to work again!

http://golang.org/doc/ and https://gobyexample.com/ Open at my side!

Still testing the configure package I’m building – tacking a while as I’m using it to understand the language better!

Very interesting ways of doing things – all very simple right now but still. Lets see how we get on tomorrow see if we can get moving and get some test sorted too.

[continued…]

github.com/lxn/polyglot
Nope still no good… others I’ve looked at:
http://stackoverflow.com/questions/14124630/i18n-strategies-for-go-with-app-engine
gettext: a MO file parser
go-18n
Internationalization plan for Go
Polyglot

Aren’t doing it for me…

OK Wrapped my own stub….

Now lets try a test http://golang.org/pkg/testing/

GREAT TESTING TALK @enneff
https://talks.golang.org/2014/testing.slide#1https://www.youtube.com/watch?v=ndmB0bj7eyw

Oh ACE stupid minor success!

Simon-Harpers-iMac:searchgear sharper$ go test -v
=== RUN TestConfigure
--- PASS: TestConfigure (0.00 seconds)
PASS
ok bitbucket.org/sharpic/searchgear 0.091s

And COVERAGE!
Simon-Harpers-iMac:searchgear sharper$ go tool cover -func=cover.out
bitbucket.org/sharpic/searchgear/configure.go: lang 100.0%
bitbucket.org/sharpic/searchgear/configure.go: Configure 0.0%
total: (statements) 8.3%

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s