codingecho

日々の体験などを書いてます

Entries from 2018-05-01 to 1 month

Building a CI for Golang test

I built a CI with Jenkins for Golang test. We run go test on a Docker container and even run Jenkins on a Docker container. Directories app ├── docker │ ├── dockerfiles # Dockerfiles for unit test │ └── test │ ├── init-db.sh # This initial…

Golangでユニットテスト書くテクニック

Goは他のフレームワークにあるような大きなアサーションツールを持っていません。Goでは testing.T オブジェクトのメソッドがテストに使われます。 T.Error(args ...interface{}) または T.Error(msg string, args interface{}) はメッセージを受け取ってテ…

Lenear algebra for machine learning

[mathjax] I've been reviewing linear algebra, Mathematics for Machine Learning: Linear Algebra on Coursera. I finished the Week 2 module. This course is easy to understand as far. And I memorize what I did in week one and week two modules.…