• 此项目
    • 正在载入...
  • 登录

mmm-go / oppmg · 文件

转到一个项目

GitLab

  • 转到群组
  • 项目
  • 活动
  • 文件
  • 提交
  • 管道 0
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 0
  • 成员
  • 标记
  • 维基
  • 派生
  • 网络
  • 创建新的问题
  • oppmg
  • protocol
  • error_test.go
  • 新建
    b4ead2fb
    唐旭辉 在
    2019-11-20 11:06:58 +0800
    提交 浏览文件 »
error_test.go 256 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package protocol

import (
	"encoding/json"
	"testing"
)

func Test_Err(t *testing.T) {
	errmsg := NewMesage(0)
	bt1, _ := json.Marshal(errmsg)
	t.Log(string(bt1))
	normalmsg := NewErrWithMessage(0)
	bt2, _ := json.Marshal(normalmsg)
	t.Log(string(bt2))
}