用于Go单元测试的Pure Go Redis服务器-Golang开发

时间:2021-05-26 14:45:50
【文件属性】:
文件名称:用于Go单元测试的Pure Go Redis服务器-Golang开发
文件大小:162KB
文件格式:ZIP
更新时间:2021-05-26 14:45:50
Golang Testing Miniredis Pure Go Redis测试服务器,用于Go单元测试。 有时,您想测试使用Redis的代码,而不进行全面的集成测试。 Miniredis实现(部分)Redis服务器,用于单元Miniredis Pure Go Redis测试服务器,用于Go单元测试。 有时,您想测试使用Redis的代码,而不进行全面的集成测试。 Miniredis实现(部分)Redis服务器,以用于单元测试。 它通过真正的TCP接口实现了简单,廉价,内存中的Redis替换。 可以将其视为net / http / httptest的Redis版本。 它使您免于使用模拟代码,并且由于redis服务器处于测试过程中,因此您可以直接查询值,例如
【文件预览】:
miniredis-master
----cmd_stream_test.go(17KB)
----proto()
--------types_test.go(866B)
--------proto_test.go(4KB)
--------Makefile(15B)
--------proto.go(5KB)
--------client.go(916B)
--------types.go(2KB)
----.gitignore(76B)
----go.mod(193B)
----cmd_scripting.go(5KB)
----stream_test.go(4KB)
----miniredis.go(14KB)
----cmd_set_test.go(15KB)
----direct.go(18KB)
----cmd_hash_test.go(13KB)
----Makefile(129B)
----server()
--------proto_test.go(3KB)
--------Makefile(74B)
--------proto.go(3KB)
--------server.go(9KB)
--------server_test.go(5KB)
----cmd_connection.go(5KB)
----integration()
--------test.go(12KB)
--------script_test.go(12KB)
--------stream_test.go(19KB)
--------connection_test.go(5KB)
--------generic_test.go(7KB)
--------tls.go(1KB)
--------Makefile(191B)
--------cluster_test.go(282B)
--------hash_test.go(6KB)
--------set_test.go(9KB)
--------rewr.sh(355B)
--------list_test.go(11KB)
--------server_test.go(956B)
--------geo_test.go(49KB)
--------tx_test.go(4KB)
--------string_test.go(17KB)
--------ephemeral.go(3KB)
--------command_test.go(180B)
--------pubsub_test.go(13KB)
--------get_redis.sh(328B)
--------sorted_set_test.go(24KB)
----cmd_geo.go(12KB)
----keys_test.go(3KB)
----.travis.yml(187B)
----cmd_cluster.go(2KB)
----cmd_list_test.go(22KB)
----LICENSE(1KB)
----geo.go(1KB)
----cmd_sorted_set.go(27KB)
----sorted_set.go(2KB)
----CHANGELOG.md(2KB)
----redis.go(6KB)
----cmd_command.go(10KB)
----go.sum(1KB)
----cmd_geo_test.go(11KB)
----cmd_set.go(12KB)
----testdata()
--------server.key(2KB)
--------server.crt(1KB)
--------Makefile(507B)
--------client.crt(1KB)
--------client.key(2KB)
----geohash()
--------LICENSE(1KB)
--------geohash.go(8KB)
--------base32.go(1KB)
--------README.md(150B)
----cmd_sorted_set_test.go(35KB)
----pubsub.go(5KB)
----geo_test.go(372B)
----cmd_string_test.go(27KB)
----cmd_generic.go(10KB)
----README.md(6KB)
----cmd_server_test.go(2KB)
----cmd_pubsub.go(5KB)
----cmd_list.go(13KB)
----cmd_generic_test.go(14KB)
----cmd_transactions.go(3KB)
----test_test.go(3KB)
----check.go(2KB)
----cmd_connection_test.go(6KB)
----cmd_pubsub_test.go(12KB)
----cmd_cluster_test.go(949B)
----keys.go(2KB)
----cmd_transactions_test.go(4KB)
----cmd_string.go(21KB)
----miniredis_test.go(5KB)
----lua.go(5KB)
----cmd_server.go(2KB)
----stream.go(7KB)
----cmd_stream.go(18KB)
----cmd_scripting_test.go(12KB)
----cmd_hash.go(11KB)
----db.go(13KB)
----sorted_set_test.go(2KB)

网友评论