mirai/mirai-core-mock
cssxsh f4fa2cabf4
[core] feat: essence message setting (#2314)
* feat: remove essence message

* feat: Essences

* add: share and remove

* fix: impl

* fix: arguments

* feat: image url to image

* add: doc

* fix: doc

* Copyright: 2023

* remove: method removeEssenceMessage

* feat: lazy load source

* add: no parse

* add: sendAndExpect try

* fix: remove throw

* fix: parse IMAGE_MD5_REGEX
2023-03-21 14:53:23 +00:00
..
src [core] feat: essence message setting (#2314) 2023-03-21 14:53:23 +00:00
test [mock] Fix mockUploadAudio always throws ISE, part of #2548 2023-03-19 12:28:35 +00:00
build.gradle.kts [build] Update to Kotlin 1.8.10 2023-03-19 03:18:34 +00:00
README.md Mock Testing Framework (#1521) 2022-09-10 12:49:13 +08:00

mirai-core-mock

mirai 模拟环境测试框架

模拟环境目前仅支持 JVM


src 架构

  • contact - 与 mirai-core-api 架构一致
  • database - 数据库, 用于存储一些临时的零碎数据
  • resserver - 资源服务
  • userprofile - 与 UserProfile 相关的一些服务
  • utils - 工具类

test 架构

  • <toplevel> 与 mirai-core-api 关系不大或者一些独立的组件的测试
  • .mock 模拟的各个部分的测试, 每个测试都继承 MockBotTestBase