mirror of
https://github.com/mamoe/mirai.git
synced 2024-12-26 16:40:27 +08:00
5b3e508b75
* 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 |
||
---|---|---|
.. | ||
src | ||
test | ||
build.gradle.kts | ||
README.md |
mirai-core-mock
mirai 模拟环境测试框架
模拟环境目前仅支持 JVM
src 架构
contact
- 与mirai-core-api
架构一致database
- 数据库, 用于存储一些临时的零碎数据resserver
- 资源服务userprofile
- 与UserProfile
相关的一些服务utils
- 工具类
test 架构
<toplevel>
与 mirai-core-api 关系不大或者一些独立的组件的测试.mock
模拟的各个部分的测试, 每个测试都继承MockBotTestBase