miniredis:用于Go单元测试的Pure Go Redis服务器

时间:2021-02-04 14:13:08
【文件属性】:
文件名称:miniredis:用于Go单元测试的Pure Go Redis服务器
文件大小:155KB
文件格式:ZIP
更新时间:2021-02-04 14:13:08
go redis unittest GoGo Miniredis 纯Go Redis测试服务器,用于Go单元测试。 有时,您想测试使用Redis的代码,而不进行全面的集成测试。 Miniredis实现(部分)Redis服务器,以用于单元测试。 它使用真实的TCP接口实现了简单,廉价,内存中的Redis替换。 将其视为net/http/httptest的Redis版本。 它使您免于使用模拟代码,并且由于redis服务器处于测试过程中,因此您可以直接查询值,而无需遍历服务器堆栈。 外部二进制文件没有依赖性,因此您可以轻松地将其集成到自动化构建过程中。 确保导入v2: import "github.com/alicebob/mini
【文件预览】:
miniredis-master
----.travis.yml(187B)
----cmd_scripting_test.go(12KB)
----pubsub.go(5KB)
----testdata()
--------client.key(2KB)
--------Makefile(507B)
--------server.crt(1KB)
--------client.crt(1KB)
--------server.key(2KB)
----cmd_sorted_set.go(27KB)
----test_test.go(3KB)
----server()
--------server.go(9KB)
--------server_test.go(5KB)
--------proto_test.go(3KB)
--------Makefile(74B)
--------proto.go(3KB)
----cmd_hash_test.go(13KB)
----cmd_generic_test.go(14KB)
----cmd_hash.go(11KB)
----cmd_cluster.go(2KB)
----miniredis_test.go(5KB)
----cmd_scripting.go(5KB)
----keys.go(2KB)
----cmd_geo_test.go(11KB)
----db.go(17KB)
----cmd_server.go(2KB)
----keys_test.go(3KB)
----LICENSE(1KB)
----geo_test.go(372B)
----cmd_cluster_test.go(949B)
----cmd_geo.go(12KB)
----direct.go(18KB)
----cmd_transactions_test.go(4KB)
----geo.go(1KB)
----cmd_sorted_set_test.go(35KB)
----cmd_command.go(10KB)
----miniredis.go(14KB)
----stream.go(3KB)
----check.go(2KB)
----cmd_transactions.go(3KB)
----cmd_pubsub.go(5KB)
----cmd_connection.go(5KB)
----redis.go(5KB)
----stream_test.go(963B)
----.gitignore(76B)
----cmd_server_test.go(2KB)
----cmd_connection_test.go(6KB)
----lua.go(5KB)
----cmd_pubsub_test.go(12KB)
----CHANGELOG.md(2KB)
----Makefile(129B)
----cmd_stream.go(12KB)
----cmd_list_test.go(22KB)
----sorted_set.go(2KB)
----go.sum(1KB)
----cmd_list.go(13KB)
----geohash()
--------LICENSE(1KB)
--------geohash.go(8KB)
--------README.md(150B)
--------base32.go(1KB)
----cmd_string_test.go(26KB)
----integration()
--------ephemeral.go(3KB)
--------test.go(12KB)
--------cluster_test.go(264B)
--------string_test.go(14KB)
--------pubsub_test.go(10KB)
--------server_test.go(794B)
--------generic_test.go(6KB)
--------set_test.go(8KB)
--------tx_test.go(3KB)
--------geo_test.go(48KB)
--------hash_test.go(5KB)
--------command_test.go(180B)
--------stream_test.go(7KB)
--------connection_test.go(4KB)
--------Makefile(191B)
--------script_test.go(11KB)
--------tls.go(1KB)
--------list_test.go(10KB)
--------get_redis.sh(289B)
--------sorted_set_test.go(21KB)
----README.md(6KB)
----cmd_stream_test.go(14KB)
----cmd_string.go(21KB)
----cmd_set.go(12KB)
----proto()
--------client.go(916B)
--------types_test.go(866B)
--------proto_test.go(4KB)
--------Makefile(15B)
--------proto.go(5KB)
--------types.go(2KB)
----cmd_generic.go(10KB)
----cmd_set_test.go(15KB)
----sorted_set_test.go(2KB)
----go.mod(193B)

网友评论