Skip to content

Commit

Permalink
docs: add some new status badges (#35)
Browse files Browse the repository at this point in the history
* docs: add some new status badges

* ci: rename unit test yml file

---------

Co-authored-by: VM <arimas@foxmail.com>
  • Loading branch information
sysvm and VM authored Nov 22, 2023
1 parent c7bd0cf commit a10c4aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Golang Code Lint
name: Code Lint

on:
push:
Expand Down
File renamed without changes.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# CoinGecko API

[![Build Status](https://travis-ci.com/bufdata/coingecko-api.svg?branch=main)](https://travis-ci.com/bufdata/coingecko-api)
[![Go Version](https://img.shields.io/badge/go-v1.21.1-green.svg)](https://golang.org/dl/)
[![Code Lint](https://github.com/bufdata/coingecko-api/actions/workflows/code-lint.yml/badge.svg)](https://github.com/bufdata/coingecko-api/actions/workflows/code-lint.yml)
[![Unit Test](https://github.com/bufdata/coingecko-api/actions/workflows/unit-test.yml/badge.svg)](https://github.com/bufdata/coingecko-api/actions/workflows/unit-test.yml)
[![GoDoc](https://pkg.go.dev/github.com/bufdata/coingecko-api?status.svg)](https://pkg.go.dev/github.com/bufdata/coingecko-api)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/bufdata/coingecko-api/blob/main/LICENSE)
[![goreports](https://goreportcard.com/badge/github.com/bufdata/coingecko-api)](https://goreportcard.com/report/github.com/bufdata/coingecko-api)
[![Codecov](https://codecov.io/gh/bufdata/coingecko-api/branch/master/graph/badge.svg)](https://codecov.io/gh/bufdata/coingecko-api)
[![license](https://img.shields.io/badge/license-MIT-blue)](https://github.com/bufdata/coingecko-api/blob/main/LICENSE)
[![Build Status](https://travis-ci.com/bufdata/coingecko-api.svg?branch=main)](https://travis-ci.com/bufdata/coingecko-api)

[![](https://static.coingecko.com/s/coingecko-logo-d13d6bcceddbb003f146b33c2f7e8193d72b93bb343d38e392897c3df3e78bdd.png)](https://coingecko.com)
[![](https://www.geckoterminal.com/_next/static/media/logo_dark.6b1547fe.png)](https://www.geckoterminal.com)
Expand Down
32 changes: 7 additions & 25 deletions coingecko/methods_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,43 +382,25 @@ func TestClient_ListCoinsInfo(t *testing.T) {
// wantedErrStr string
// }{
// {
// name: "success",
// server: mockHTTPServer(t, &[]ListCoinsMarketsDataResponse{
// {
// coinsStruct{
// ID: "ethereum",
// Symbol: "eth",
// Name: "Ethereum",
// },
// "",
// },
// }),
// wantedIsErr: false,
// wantedResult: &[]ListCoinsMarketsDataResponse{
// {
// coinsStruct{
// ID: "ethereum",
// Symbol: "eth",
// Name: "Ethereum",
// },
// nil,
// },
// },
// name: "success",
// server: nil,
// wantedIsErr: false,
// wantedResult: nil,
// wantedErrStr: "",
// },
// {
// name: "failed to call api",
// server: mockErrorHTTPServer(t),
// server: mockErrorHTTPServer(t, ""),
// wantedIsErr: true,
// wantedResult: nil,
// wantedErrStr: statusCode400ErrStr,
// },
// {
// name: "failed to unmarshal json",
// server: mockHTTPServer(t, []byte(`{"name":what?}`)),
// server: mockHTTPServer(t, "", invalidJSONString),
// wantedIsErr: true,
// wantedResult: nil,
// wantedErrStr: incorrectJSONTypeErrStr,
// wantedErrStr: invalidCharacterJSONErrStr,
// },
// }
// for _, tt := range cases {
Expand Down

0 comments on commit a10c4aa

Please sign in to comment.