openlark 0.16.0

飞书开放平台 Rust SDK - 企业级高覆盖率 API 客户端,极简依赖一条命令
Documentation
import subprocess
import unittest
from pathlib import Path


class OpenlarkPlatformMissingDocsTests(unittest.TestCase):
    def test_openlark_platform_has_no_missing_docs_warnings(self):
        result = subprocess.run(
            ["cargo", "check", "-p", "openlark-platform", "--features", "v1"],
            capture_output=True,
            text=True,
            check=False,
        )

        output = result.stdout + result.stderr
        self.assertEqual(result.returncode, 0, msg=output)
        self.assertNotIn("warning: missing documentation for ", output, msg=output)

    def test_v1_root_modules_do_not_use_missing_docs_allow(self):
        for path in Path("crates/openlark-platform/src").rglob("*.rs"):
            content = path.read_text(encoding="utf-8")
            self.assertNotIn("#![allow(missing_docs)]", content, msg=f"{path} still suppresses missing_docs warnings")


if __name__ == "__main__":
    unittest.main()