Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.59 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.59 KB

Introduction

Build Status Build Status

This project reimplement libchewing in golang.

Development

See How to Write Go Code, or using command go help gopath to setup the development environment.

If your environment does not have golang, or the version of golang is too old, you can install it by gvm.

Install Dependencies

The following command can install dependencies of this project:

go get

The following command installs dependencies for unit test:

go list -f '{{range .TestImports}}{{.}} {{end}}' github.com/czchen/libgochewing | xargs go get

Unit Test

The following cmomand runs unit test of this project:

go test

Benchmark

The following command runs benchmark of this project:

go test -bench .

Coverage

The following commands create summary coverage report for unit test:

go get github.com/axw/gocov/gocov
bin/gocov test github.com/czchen/libgochewing | bin/gocov report

The coverage report can also be generated as HTML with the following commands:

go get github.com/axw/gocov/gocov
go get github.com/matm/gocov-html
bin/gocov test github.com/czchen/libgochewing | bin/gocov-html > coverage.html

License

This project is licensed under LGPL-2.