mirai/mirai-core-mock
StageGuard 5b3e508b75
feature: add ShortVideo message support (#2739)
* initial support for ShortVideo message

* dump api

* [core] upload protocol

* [core] short video upload event

* [core] doc

* [core] protocol

* [core] fix mp4 file check

* [core] extract fileName from `OnlineShortVideo` to `ShortVideo`

* [core] ShortVideo.Builder

* [core] mirai code support for `ShortVideo`

* [core] add doc for OnlineShortVideo and OfflineShortVideo

* [core] fix text

* dump api

* update `Contact.uploadShortVideo`·` doc

* [core] remove mirai code support for ShortVideo

* [core] ensure Mirai service is loaded before load other services

* [core] introduce `CombinedExternalResource` to reference multiple external resources for combined calculation.

* [core] move refine context key defined in `OnlineShortVideoMsgInternal` to `RefineContext`

* [core] remove data class

* [core] broadcast `ShortVideoUploadEvent.Failed` event

* [core] warn when cannot determine fromId

* [core] add `contentToString` and `toString` for `OnlineShortVideoMsgInternal`

* [core] optimize imports

* [core] import

* [core] revert

* [core] doc

* [core] auto close resource

* dump api

* keep consistence of param name

* update doc

* move Builder to OfflineShortVideo

* optimize RefineContext

* RefineContext.merge

* dump api

* fix test

* show more video info

* optimize constructor and builder of offline short video

* optimize thumbnail

* move thumbnail to main constructor arg

* dump api

* avoid null cast exception.

* combine format transition

* cleanup
2023-08-20 18:41:05 +08:00
..
src feature: add ShortVideo message support (#2739) 2023-08-20 18:41:05 +08:00
test [mock] fix mockHonorMember (#2473) 2023-03-29 15:29:54 +01:00
build.gradle.kts Remove module-level opt-ins, add @OptIn explicit in use-sites; 2023-05-06 11:04:31 +01: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