gomock 是 Google 开源的 Golang 测试框架。

GoMock is a mocking framework for the Go programming language.https://github.com/golang/mock

快速开始

安装 mockgen

To get the latest released version use:
Go version < 1.16

GO111MODULE=on go get github.com/golang/mock/mockgen@v1.6.0

Go 1.16+

go install github.com/golang/mock/mockgen@v1.6.0

定义好被测接口

// mockgen -source=./driver/navigator_driver.go -destination ./driver/navigator_driver_mock.go -package drivertype INavigatorDriver interface {Query(Ctx context.Context,SqlClient *sqlclient.SQLClient,sqlKey,sql string,searchOptions ...*engine.Option,) ([]map[string]interface{}, error)BatchGetProductInfoMap(Ctx context.Context,SqlClient *sqlclient.SQLClient,date string,ids []int64,entityFields []string,) (map[int64]interface{}, error)BatchGetBrandInfoMap(Ctx context.Context,SqlClient *sqlclient.SQLClient,date string,ids []int64,entityFields []string,) (map[int64]interface{}, error)
}type NavigatorDriver struct {
}

使用 mockgen 命令行自动生成 gomock代码

gomock通过mockgen命令生成包含mock对象的.go文件,其生成的mock对象具备mock+stub的强大功能.

mockgen -source=./driver/navigator_driver.go -destination ./driver/navigator_driver_mock.go -package driver

其中, navigator_driver_mock.go 是生成的 mock 代码.

代码目录:

类型关系:

生成的Mock Stub代码如下:

// Code generated by MockGen. DO NOT EDIT.
// Source: ./driver/navigator_driver.go// Package driver is a generated GoMock package.
package driverimport (context "context"reflect "reflect"...gomock "github.com/golang/mock/gomock"
)// MockINavigatorDriver is a mock of INavigatorDriver interface.
type MockINavigatorDriver struct {ctrl     *gomock.Controllerrecorder *MockINavigatorDriverMockRecorder
}// MockINavigatorDriverMockRecorder is the mock recorder for MockINavigatorDriver.
type MockINavigatorDriverMockRecorder struct {mock *MockINavigatorDriver
}// NewMockINavigatorDriver creates a new mock instance.
func NewMockINavigatorDriver(ctrl *gomock.Controller) *MockINavigatorDriver {mock := &MockINavigatorDriver{ctrl: ctrl}mock.recorder = &MockINavigatorDriverMockRecorder{mock}return mock
}// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockINavigatorDriver) EXPECT() *MockINavigatorDriverMockRecorder {return m.recorder
}// BatchGetBrandInfoList mocks base method.
func (m *MockINavigatorDriver) BatchGetBrandInfoMap(Ctx context.Context, SqlClient *sqlclient.SQLClient, date string, ids []int64, entityFields []string) (map[int64]interface{}, error) {m.ctrl.T.Helper()ret := m.ctrl.Call(m, "BatchGetBrandInfoMap", Ctx, SqlClient, date, ids, entityFields)ret0, _ := ret[0].(map[int64]interface{})ret1, _ := ret[1].(error)return ret0, ret1
}// BatchGetBrandInfoList indicates an expected call of BatchGetBrandInfoList.
func (mr *MockINavigatorDriverMockRecorder) BatchGetBrandInfoList(Ctx, SqlClient, date, ids, entityFields interface{}) *gomock.Call {mr.mock.ctrl.T.Helper()return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetBrandInfoMap", reflect.TypeOf((*MockINavigatorDriver)(nil).BatchGetBrandInfoMap), Ctx, SqlClient, date, ids, entityFields)
}// BatchGetProductInfoList mocks base method.
func (m *MockINavigatorDriver) BatchGetProductInfoMap(Ctx context.Context, SqlClient *sqlclient.SQLClient, date string, ids []int64, entityFields []string) (map[int64]interface{}, error) {m.ctrl.T.Helper()ret := m.ctrl.Call(m, "BatchGetProductInfoMap", Ctx, SqlClient, date, ids, entityFields)ret0, _ := ret[0].(map[int64]interface{})ret1, _ := ret[1].(error)return ret0, ret1
}// BatchGetProductInfoList indicates an expected call of BatchGetProductInfoList.
func (mr *MockINavigatorDriverMockRecorder) BatchGetProductInfoList(Ctx, SqlClient, date, ids, entityFields interface{}) *gomock.Call {mr.mock.ctrl.T.Helper()return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetProductInfoMap", reflect.TypeOf((*MockINavigatorDriver)(nil).BatchGetProductInfoMap), Ctx, SqlClient, date, ids, entityFields)
}// Query mocks base method.
func (m *MockINavigatorDriver) Query(Ctx context.Context, SqlClient *sqlclient.SQLClient, sqlKey, sql string, searchOptions ...*engine.Option) ([]map[string]interface{}, error) {m.ctrl.T.Helper()varargs := []interface{}{Ctx, SqlClient, sqlKey, sql}for _, a := range searchOptions {varargs = append(varargs, a)}ret := m.ctrl.Call(m, "Query", varargs...)ret0, _ := ret[0].([]map[string]interface{})ret1, _ := ret[1].(error)return ret0, ret1
}// Query indicates an expected call of Query.
func (mr *MockINavigatorDriverMockRecorder) Query(Ctx, SqlClient, sqlKey, sql interface{}, searchOptions ...interface{}) *gomock.Call {mr.mock.ctrl.T.Helper()varargs := append([]interface{}{Ctx, SqlClient, sqlKey, sql}, searchOptions...)return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockINavigatorDriver)(nil).Query), varargs...)
}

测试代码实例

我们来 Mock 如下代码中的这个接口调用的返回值:

datasourceData, _ := navigatorDriver.Query(u.Ctx, u.Datasource.SqlClient, u.Datasource.SqlKey, navigatorSQL)
func (u *UIComponent) RenderDataTable() ([]map[string]interface{}, error) {bu, _ := json.Marshal(u)fmt.Println(string(bu))endTime := u.DateRangeFilter.EndDatedateType := u.DateRangeFilter.DaysType// 本周期时间dateStr := indexu.GetDateStr(endTime)// 1.fetch 数据源// 1.1 select 数据源字段 select columnscolumnNames := make([]string, 0)for _, e := range u.Datasource.Columns {columnNames = append(columnNames, e.Name)}// 1.2 数据源表datasourceTable := u.Datasource.TableName// 1.3 过滤条件 DateRangeFilter 是固定的whereExpr := buildWhereExpr(dateStr, dateType, u)datasourceCQL := alpha.NewCQL().SELECT(columnNames...).FROM(datasourceTable).WHERE(whereExpr).ORDERBY2(u.Datasource.DSOrderType, u.Datasource.DSOrderColumn).LIMIT2(u.Datasource.DSLimit)// 1.4 从数据源获取数据(领航者)// TODO MOCK, 线上用真实的 NavigatorQueryList 查询navigatorDriver := u.INavigatorDrivernavigatorSQL := datasourceCQL.Compile()logu.CtxInfo(u.Ctx, "RenderDataTable", "navigatorSQL: %v", navigatorSQL)datasourceData, _ := navigatorDriver.Query(u.Ctx, u.Datasource.SqlClient, u.Datasource.SqlKey, navigatorSQL)// 1.5 RSD 数据中添加排名字段信息 RankKeyif u.NeedRank {datasourceData = rocket.NewRSD2(datasourceData, u.Ctx, u.Datasource.SqlClient, u.INavigatorDriver).WithRank(u.RankKey, u.Datasource.Columns).Records}// 2.内存指标计算sqlite, _ := driver.InitSqlite(u.Ctx, map[string]interface{}{})// 2.1 从数据源返回数据中解析出列的元数据信息columns := ParseColumnsMeta(datasourceData)fmt.Println(columns)// 2.2 表名生成sqliteTableName := driver.GenerateUniqSQLiteTableName()// 2.3 建内存表driver.CreateTable(u.Ctx, sqliteTableName, columns, sqlite)// 2.4 同步数据到内存driver.InsertData(u.Ctx, sqliteTableName, datasourceData, columns, sqlite)// 2.5 内存数据条数校验count, _, _ := driver.Query(nil, fmt.Sprintf("select count(1) as count from %s", sqliteTableName), sqlite)if nums, err := convert.ToInt64E(count[0]["count"]); err == nil && nums <= 0 {return nil, fmt.Errorf("datasource empty")}// 2.6 内存计算非指标列var selectItem = []string{}for _, c := range u.Datasource.Columns { // 指标计算规则元数据信息if !c.IsDataIndex {cname := c.NameselectItem = append(selectItem, cname)}}// 2.7 内存计算指标列indexColumns := getIndexColumns(u.Datasource.Columns)// add incr select itemsfor _, column := range indexColumns {columnName := column.Namevar exp = fmt.Sprintf("IndexInfo(%s) as %s", columnName, columnName)selectItem = append(selectItem, exp)}// 2.8 CQL中添加排名信息 UDFif u.NeedRank {// Rank Key 是单独指定的,不是数据列的概念rankKey := u.RankKeyselectItem = append(selectItem, fmt.Sprintf("RankInfo(%s) as %s", rankKey, rankKey))}memCQL := alpha.NewCQL().SELECT(selectItem...).FROM(sqliteTableName)if u.DFLimit != nil && u.DFOffset != nil {memCQL = memCQL.LIMIT3(*u.DFLimit, *u.DFOffset)} else if u.DFLimit != nil && u.DFOffset == nil {memCQL = memCQL.LIMIT2(*u.DFLimit)}incrSQL := memCQL.Compile()fmt.Println(incrSQL)result, _, _ := driver.Query(u.Ctx, incrSQL, sqlite)rsd := rocket.NewRSD2(result, u.Ctx, u.Datasource.SqlClient, u.INavigatorDriver).UnmarshalIndexInfo(u.Datasource.Columns).UnmarshalRankInfo(u.NeedRank, u.RankKey).FillEntityInfoColumn(dateStr, u.Datasource.Columns)return rsd.Records, nil
}

接口定义

// mockgen -source=./driver/navigator_driver.go -destination ./driver/navigator_driver_mock.go -package drivertype INavigatorDriver interface {Query(Ctx context.Context,SqlClient *sqlclient.SQLClient,sqlKey,sql string,searchOptions ...*engine.Option,) ([]map[string]interface{}, error)BatchGetProductInfoMap(Ctx context.Context,SqlClient *sqlclient.SQLClient,date string,ids []int64,entityFields []string,) (map[int64]interface{}, error)BatchGetBrandInfoMap(Ctx context.Context,SqlClient *sqlclient.SQLClient,date string,ids []int64,entityFields []string,) (map[int64]interface{}, error)
}type NavigatorDriver struct {
}

mock 测试代码

关键代码行:

ctrl := gomock.NewController(t)defer ctrl.Finish()mockDriver := driver.NewMockINavigatorDriver(ctrl)// NavigatorQueryList 期望返回mockDriver.EXPECT().Query(ctx, SqlClient, "compass_strategy_chance_property_product_stats_di", gomock.Any(), gomock.Any()).Return(driver.MockNavigatorQueryListProductStats())

完整代码:

var (ctx       = context.Background()SqlClient = gomock.Any()
)func TestDataTableUIComponent(t *testing.T) {ctrl := gomock.NewController(t)defer ctrl.Finish()mockDriver := driver.NewMockINavigatorDriver(ctrl)// NavigatorQueryList 期望返回mockDriver.EXPECT().Query(ctx, SqlClient, "compass_strategy_chance_property_product_stats_di", gomock.Any(), gomock.Any()).Return(driver.MockNavigatorQueryListProductStats())mockDriver.EXPECT().BatchGetProductInfoList(ctx, SqlClient, gomock.Any(), gomock.Any(), gomock.Any()).Return(driver.MockNavigatorQueryListProudctMap())//mockDriver.//  EXPECT().//  BatchGetBrandInfoList(ctx, SqlClient, gomock.Any(), gomock.Any(), gomock.Any()).//  Return(driver.MockNavigatorQueryListBrandMap())// 初始化数据源columns := []datasource.Column{{Name: "date"},{Name: "days_type"},{Name: "stats_date"},{Name: "cate_id"},{Name: "cate_name"},{Name: "property_name"},{Name: "market_name"},{Name: "product_property_value"},{Name: "product_id", IsRowKey: true, NeedFillEntityInfo: true, EntityType: datasource.Product, EntityInfoColumnKey: "product_info"},{Name: "pay_amt", IsDataIndex: true},{Name: "pay_combo_cnt", IsDataIndex: true},}datasoure := &datasource.DataSource{TableName:     "compass_strategy_chance_property_product_stats_di",Columns:       columns,SqlKey:        "compass_strategy_chance_property_product_stats_di",SearchOptions: []*engine.Option{},DSOrderColumn: "pay_combo_cnt",DSOrderType:   alpha.DESC,DSLimit:       50,}// 创建组件UIComponent := NewUIComponent(ctx,mockDriver,DataTable,datasoure,&DateRangeFilter{DaysType:  constu.DateType_LAST_SEVEN_DAYS,StartDate: 0,EndDate:   1653177600,},&DimFilter{DimCondition: map[string]string{"cate_id": "123","market_name":            "碎花","product_property_value": "长款裙子",},},)// 内存分页PageNo := int64(2)PageSize := int64(5)dflimit := (PageNo - 1) * PageSizedfoffset := PageSizeUIComponent.DFOrderColumn = "pay_combo_cnt"UIComponent.DFOrderType = alpha.DESCUIComponent.DFLimit = &dflimitUIComponent.DFOffset = &dfoffsetUIComponent.NeedRank = trueUIComponent.RankKey = "rank"// UIComponent 唯一 Render() 数据函数result, _ := UIComponent.Render()fmt.Println("size:", len(result))fmt.Println("====================================================================================")b, _ := json.Marshal(result)fmt.Println(string(b))
}

gomock

gomock is a mocking framework for the Go programming language. It
integrates well with Go's built-in testing package, but can be used in other
contexts too.

Installation

Once you have installed Go, install the mockgen tool.

Note: If you have not done so already be sure to add $GOPATH/bin to yourPATH.

To get the latest released version use:

Go version < 1.16

GO111MODULE=on go get github.com/golang/mock/mockgen@v1.6.0

Go 1.16+

go install github.com/golang/mock/mockgen@v1.6.0

If you use mockgen in your CI pipeline, it may be more appropriate to fixate
on a specific mockgen version. You should try to keep the library in sync with
the version of mockgen used to generate your mocks.

Running mockgen

mockgen has two modes of operation: source and reflect.

Source mode

Source mode generates mock interfaces from a source file.
It is enabled by using the -source flag. Other flags that
may be useful in this mode are -imports and -aux_files.

Example:

mockgen -source=foo.go [other options]

Reflect mode

Reflect mode generates mock interfaces by building a program
that uses reflection to understand interfaces. It is enabled
by passing two non-flag arguments: an import path, and a
comma-separated list of symbols.

You can use "." to refer to the current path's package.

Example:

mockgen database/sql/driver Conn,Driver# Convenient for `go:generate`.
mockgen . Conn,Driver

Flags

The mockgen command is used to generate source code for a mock
class given a Go source file containing interfaces to be mocked.
It supports the following flags:

  • -source: A file containing interfaces to be mocked.

  • -destination: A file to which to write the resulting source code. If you
    don't set this, the code is printed to standard output.

  • -package: The package to use for the resulting mock class
    source code. If you don't set this, the package name is mock_ concatenated
    with the package of the input file.

  • -imports: A list of explicit imports that should be used in the resulting
    source code, specified as a comma-separated list of elements of the formfoo=bar/baz, where bar/baz is the package being imported and foo is
    the identifier to use for the package in the generated source code.

  • -aux_files: A list of additional files that should be consulted to
    resolve e.g. embedded interfaces defined in a different file. This is
    specified as a comma-separated list of elements of the formfoo=bar/baz.go, where bar/baz.go is the source file and foo is the
    package name of that file used by the -source file.

  • -build_flags: (reflect mode only) Flags passed verbatim to go build.

  • -mock_names: A list of custom names for generated mocks. This is specified
    as a comma-separated list of elements of the formRepository=MockSensorRepository,Endpoint=MockSensorEndpoint, whereRepository is the interface name and MockSensorRepository is the desired
    mock name (mock factory method and mock recorder will be named after the mock).
    If one of the interfaces has no custom name specified, then default naming
    convention will be used.

  • -self_package: The full package import path for the generated code. The
    purpose of this flag is to prevent import cycles in the generated code by
    trying to include its own package. This can happen if the mock's package is
    set to one of its inputs (usually the main one) and the output is stdio so
    mockgen cannot detect the final output package. Setting this flag will then
    tell mockgen which import to exclude.

  • -copyright_file: Copyright file used to add copyright header to the resulting source code.

  • -debug_parser: Print out parser results only.

  • -exec_only: (reflect mode) If set, execute this reflection program.

  • -prog_only: (reflect mode) Only generate the reflection program; write it to stdout and exit.

  • -write_package_comment: Writes package documentation comment (godoc) if true. (default true)

For an example of the use of mockgen, see the sample/ directory. In simple
cases, you will need only the -source flag.

Building Mocks

type Foo interface {Bar(x int) int
}func SUT(f Foo) {// ...
}
func TestFoo(t *testing.T) {ctrl := gomock.NewController(t)// Assert that Bar() is invoked.defer ctrl.Finish()m := NewMockFoo(ctrl)// Asserts that the first and only call to Bar() is passed 99.// Anything else will fail.m.EXPECT().Bar(gomock.Eq(99)).Return(101)SUT(m)
}

If you are using a Go version of 1.14+, a mockgen version of 1.5.0+, and are
passing a *testing.T into gomock.NewController(t) you no longer need to callctrl.Finish() explicitly. It will be called for you automatically from a self
registered Cleanup function.

Building Stubs

type Foo interface {Bar(x int) int
}func SUT(f Foo) {// ...
}
func TestFoo(t *testing.T) {ctrl := gomock.NewController(t)defer ctrl.Finish()m := NewMockFoo(ctrl)// Does not make any assertions. Executes the anonymous functions and returns// its result when Bar is invoked with 99.m.EXPECT().Bar(gomock.Eq(99)).DoAndReturn(func(_ int) int {time.Sleep(1*time.Second)return 101}).AnyTimes()// Does not make any assertions. Returns 103 when Bar is invoked with 101.m.EXPECT().Bar(gomock.Eq(101)).Return(103).AnyTimes()SUT(m)
}

Modifying Failure Messages

When a matcher reports a failure, it prints the received (Got) vs the
expected (Want) value.

Got: [3]
Want: is equal to 2
Expected call at user_test.go:33 doesn't match the argument at index 1.
Got: [0 1 1 2 3]
Want: is equal to 1

Modifying Want

The Want value comes from the matcher's String() method. If the matcher's
default output doesn't meet your needs, then it can be modified as follows:

gomock.WantFormatter(gomock.StringerFunc(func() string { return "is equal to fifteen" }),gomock.Eq(15),
)

This modifies the gomock.Eq(15) matcher's output for Want: from is equal to 15 to is equal to fifteen.

Modifying Got

The Got value comes from the object's String() method if it is available.
In some cases the output of an object is difficult to read (e.g., []byte) and
it would be helpful for the test to print it differently. The following
modifies how the Got value is formatted:

gomock.GotFormatterAdapter(gomock.GotFormatterFunc(func(i interface{}) string {// Leading 0sreturn fmt.Sprintf("%02d", i)}),gomock.Eq(15),
)

If the received value is 3, then it will be printed as 03.

Debugging Errors

reflect vendoring error

cannot find package "."
... github.com/golang/mock/mockgen/model

If you come across this error while using reflect mode and vendoring
dependencies there are three workarounds you can choose from:

  1. Use source mode.
  2. Include an empty import import _ "github.com/golang/mock/mockgen/model".
  3. Add --build_flags=--mod=mod to your mockgen command.

This error is due to changes in default behavior of the go command in more
recent versions. More details can be found in#494.

http://www.taodudu.cc/news/show-6863252.html

相关文章:

  • 送一波福利
  • 面试官:请你详细说说Go的逃逸分析【文末送福利】
  • RPG游戏高性能特效是怎么练成的?文末送福利
  • 读者福利|联合腾讯送福利,拿专属好礼
  • web高德maker动画_Web Maker,一种基于浏览器的离线CodePen替代品
  • (Python编程)目录工具
  • Rust 2018开发环境配置与开发效率工具集
  • Shopees市场以及热销品了解一下~kkgj66
  • 干货|跨境电商应该如何选品?选品步骤、方法、工具全解析
  • 前端JavaScript疑问简答题面试题
  • 「PS-CC2019新版教程-有作业」选区工具-基础篇
  • 春考计算机专业PS考点,计算机一级考点:Adobe Photoshop
  • node的使用
  • 使用Next搭建React SSR工程架构之基础篇
  • vue+node.js+mysql项目搭建
  • 使用Vite 搭建高可用的服务端渲染SSR工程
  • koa 设置cache_node koa2 ssr项目搭建的方法步骤
  • C#关于机器发音
  • 使用 JavaScript 进行单词发音 Use JavaScript to Speech Your Text
  • ctrl c复制浏览器html,桌面神器!按两下Ctrl+C,网页、文件一键收藏
  • swt中提供的复制粘贴功能.
  • linux命令复制到桌面,技术|使用 xclip 在 Linux 命令行中复制粘贴
  • swt复制粘贴
  • 微信、iOS、安卓如何安装SSL证书实现HTTPS加密
  • 【A 入门】--- 1 .苹果企业签名和超级签名有什么区别
  • HTTPS时代已来,老司机手把手指导申请免费SSL证书 韩俊强的博客
  • 网站使用https不安全证书,Safari浏览器第一次发起请求异常,需要刷新才可以正常发送
  • uniapp-App ios支付宝授权小记
  • 如何取消Apple ID授权,怎么取消Apple ID授权
  • H5网址/网站如何打包成苹果包ipa?方法记录

Go Mock 接口测试 单元测试 极简教程相关推荐

  1. 前端自动化测试框架 Jest 极简教程

    前端自动化测试框架 Jest 极简教程 Delightful JavaScript Testing. https://jestjs.io Jest是由Facebook发布的开源的.基于Jasmine的 ...

  2. 《Kotlin极简教程》第三章 Kotlin基本数据类型

    正式上架:<Kotlin极简教程>Official on shelves: Kotlin Programming minimalist tutorial 京东JD:https://item ...

  3. 负载分析及问题排查极简教程

    作者 | Hollis ,来自 | Hollis 平常的工作中,在衡量服务器的性能时,经常会涉及到几个指标,load.cpu.mem.qps.rt等.每个指标都有其独特的意义,很多时候在线上出现问题时 ...

  4. 高效sql性能优化极简教程

    一,sql性能优化基础方法论 对于功能,我们可能知道必须改进什么:但对于性能问题,有时我们可能无从下手.其实,任何计算机应用系统最终队可以归结为: cpu消耗 内存使用 对磁盘,网络或其他I/O设备的 ...

  5. session一致性架构设计极简教程

    一,缘起 什么是session? 服务器为每个用户创建一个会话,存储用户的相关信息,以便多次请求能够定位到同一个上下文. Web开发中,web-server可以自动为同一个浏览器的访问用户自动创建se ...

  6. 写一个操作系统有多难?自制 os 极简教程

    不知道正在阅读本文的你,是否是因为想自己动手写一个操作系统.我觉得可能每个程序员都有个操作系统梦,或许是想亲自动手写出来一个,或许是想彻底吃透操作系统的知识.不论是为了满足程序员们自带的成就感,还是为 ...

  7. 《Groovy极简教程》第12章 Groovy的JSON包

    <Groovy极简教程>第12章 Groovy的JSON包 Groovy自带了转换JSON的功能,相关类都在groovy.json包下.本文参考自Groovy文档 Parsing and ...

  8. Kotlin极简教程

    目录 Kotlin极简教程 前言 视频教程 Kotlin 系统入门到进阶 Kotlin 从入门到放弃 Kotlin 从零基础到进阶 第1章 Kotlin简介 第2章 快速开始:HelloWorld 第 ...

  9. Rust 编程语言极简教程 --- 实例学习

    Rust 编程语言极简教程 --- 实例学习 安装 $ curl https://sh.rustup.rs -sSf | sh info: downloading installerWelcome t ...

最新文章

  1. zookeeper 运维管理
  2. 深度学习之七:卷积神经网络
  3. 计算机网络按信号频带占用方式分为,《计算机网络及组网技术》第2阶段测试题....
  4. 以Binder视角来看Service启动
  5. boost::hana::type_c用法的测试程序
  6. cocos2dx标准容器_Cocos2d-x3.0模版容器详解之三:cocos2d::Value
  7. html input file 修改按钮文字_html单选按钮默认选中怎么做?input标签的单选按钮用法实例...
  8. 浅谈 Linux 高负载的系统化分析
  9. MySQL 查询数据表
  10. python的requests库
  11. java实现单链表常见操作,java面试题,java初级笔试题
  12. fmea软件_新版FMEA易错点梳理(一):范围界定和过程流程图-SGS
  13. 软测人员周报怎么写?(模板)
  14. js原生获取html的高度,js中怎么获得浏览器的高度?
  15. 得物技术网络优化-CDN资源请求优化实践
  16. Android自带浏览器打开网页
  17. cmd检查java_如何通过cmd查看java环境
  18. 歌声美化歌声转换方法与方案
  19. 360 和 qq 之争
  20. 感恩节(11.28)

热门文章

  1. 《迷人的材料》读书笔记
  2. 无线路由器的基础配置(二)
  3. Eclipse快捷键 最有用的几个快捷键 熟能生巧
  4. 小米的高端之路,稳了
  5. 往届亚洲杯经典回顾。
  6. 淘淘商城总结-后台管理
  7. QT socket网络编程
  8. uni-app实现点赞评论功能
  9. PC端和移动端唤起QQ聊天
  10. 【英语:语法基础】C2.日常对话-兴趣爱好