Unexported unnecessary members
This commit is contained in:
parent
4da8e94bcc
commit
d8a295be75
14 changed files with 134 additions and 115 deletions
|
|
@ -2,20 +2,15 @@ package vk
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"gitlab.com/flygrounder/go-mtg-vk/internal/cardsinfo"
|
||||
)
|
||||
|
||||
type testInfoFetcher struct{}
|
||||
|
||||
func (t *testInfoFetcher) GetPrices(name string) ([]cardsinfo.CardPrice, error) {
|
||||
func (t *testInfoFetcher) GetFormattedCardPrices(name string) (string, error) {
|
||||
if name == "good" || name == "uncached" {
|
||||
return nil, nil
|
||||
return name, nil
|
||||
}
|
||||
return nil, errors.New("test")
|
||||
}
|
||||
|
||||
func (t *testInfoFetcher) FormatCardPrices(name string, _ []cardsinfo.CardPrice) string {
|
||||
return name
|
||||
return "", errors.New("test")
|
||||
}
|
||||
|
||||
func (t *testInfoFetcher) GetNameByCardId(_ string, _ string) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue