Eritque arcus 0a7ebb7b4a add implement of md5 and sha1 for MockAbsoluteFile (#2436) il y a 3 ans
..
src 0a7ebb7b4a add implement of md5 and sha1 for MockAbsoluteFile (#2436) il y a 3 ans
test 0a7ebb7b4a add implement of md5 and sha1 for MockAbsoluteFile (#2436) il y a 3 ans
README.md 2db9804cf2 Mock Testing Framework (#1521) il y a 3 ans
build.gradle.kts ca840f88be [mock] Create task `:mirai-core-mock:buildRuntimeClasspath` il y a 3 ans

README.md

mirai-core-mock

mirai 模拟环境测试框架

模拟环境目前仅支持 JVM


src 架构

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

test 架构

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