我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Coveralls.io和Golang中的错误处理

I wrote a library for Instagram API and tell coveralls.io to check my repository

but coveralls.io tell me that all of the error handlers in my source code isn't Good. see this

How can I handle errors perfectly and coveralls.io say it's good :smile:

sorry for my English

I think it's trying to tell you that your tests are not covering that path. It means that the tests you wrote are probably testing only the "happy path" and not going into those error handling branches.

近期文章

  • 将逗号分隔的值反序列化为struct
  • 范围内的golang指针不起作用
  • Golang:json Unmarshal无法解压缩简单示例
  • 提高结构切片的价值搜索性能
  • 如何将映射中的值与一组已知值进行比较
  • 短声明运算符遮盖全局变量
  • 转到:var声明但未使用错误-如何解决?
  • 使用golang生成嵌套的JSON
  • 如何在SQLite中使用变量
  • 从TCP连接获取HTTP标头
  • 如何使Gofmt忽略供应商文件夹
  • 如何在Go中将方法作为参数传递?
  • 无法导入cloud.google.com/go/storage
  • go build是否包含二进制非二进制文件? [重复]
  • 这是一个关于计算机组成原理相关问题
  • 如何从golang项目文件获取图像路径
  • Go代码程序无法在后台运行
  • 为什么安装后找不到xgo命令?
  • 关于字节顺序和标准库的问题?
  • IPv4正则表达式捕获地址的不正确部分

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华