From e78b4f799c89584e8967a4465a6eff5c25a99324 Mon Sep 17 00:00:00 2001 From: gudzpoz Date: Fri, 26 Apr 2024 21:20:51 +0800 Subject: [PATCH] Improve test coverage for LuaJ bindings --- README.md | 2 +- docs/index.md | 2 +- .../iroiro/luajava/luaj/LuaJLibTest.java | 70 ++++++++++++++++ .../party/iroiro/luajava/luaj/LuaJTest.java | 83 +++++++++++++++++++ .../party/iroiro/luajava/LuaScriptSuite.java | 1 + .../party/iroiro/luajava/LuaTestSuite.java | 15 ++++ .../main/resources/suite/coroutineTest.lua | 22 +++++ .../party/iroiro/luajava/luaj/JseIoLib.java | 36 +++----- .../iroiro/luajava/luaj/LuaJNatives.java | 8 +- .../iroiro/luajava/value/RefLuaValue.java | 16 ---- 10 files changed, 210 insertions(+), 45 deletions(-) create mode 100644 example/src/test/java/party/iroiro/luajava/luaj/LuaJLibTest.java create mode 100644 example/src/test/java/party/iroiro/luajava/luaj/LuaJTest.java create mode 100644 example/suite/src/main/resources/suite/coroutineTest.lua diff --git a/README.md b/README.md index cd156d7e..bd5794cb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ [![Build Status](https://github.com/gudzpoz/luajava/actions/workflows/docs.yml/badge.svg)](https://github.com/gudzpoz/luajava/actions/workflows/docs.yml) [![Document Version](https://img.shields.io/github/package-json/v/gudzpoz/luajava?filename=docs%2Fpackage.json&label=Documentation)](https://gudzpoz.github.io/luajava/) -[![Tests: macOS on M1](https://img.shields.io/bitrise/ace86394e12a32ad/main?label=macOS%20on%20M1&token=t-lcEHLpUl_xT-CeJYzagg)](https://app.bitrise.io/app/ace86394e12a32ad) +[![Tests: macOS on M1](https://img.shields.io/github/actions/workflow/status/gudzpoz/luajava/build-natives.yml?label=macOS%20on%20M1)](https://github.com/gudzpoz/luajava/actions/workflows/build-natives.yml) [![Tests: Linux on arm64](https://img.shields.io/circleci/build/github/gudzpoz/luajava/main?label=Linux%20on%20arm64)](https://app.circleci.com/pipelines/github/gudzpoz/luajava) [![Hello World Example](./docs/.vuepress/public/hello.svg)](https://gudzpoz.github.io/luajava/examples/hello-world-mod.html) diff --git a/docs/index.md b/docs/index.md index 014f1c6f..d0dccb61 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,7 +18,7 @@ description: LuaJava, a scripting tool for Java [![Build Status](https://github.com/gudzpoz/luajava/actions/workflows/docs.yml/badge.svg)](https://github.com/gudzpoz/luajava/actions/workflows/docs.yml) [![Document Version](https://img.shields.io/github/package-json/v/gudzpoz/luajava?filename=docs%2Fpackage.json&label=Documentation)](https://gudzpoz.github.io/luajava/) -[![Tests: macOS on M1](https://img.shields.io/bitrise/ace86394e12a32ad/main?label=macOS%20on%20M1&token=t-lcEHLpUl_xT-CeJYzagg)](https://app.bitrise.io/app/ace86394e12a32ad) +[![Tests: macOS on M1](https://img.shields.io/github/actions/workflow/status/gudzpoz/luajava/build-natives.yml?label=macOS%20on%20M1)](https://github.com/gudzpoz/luajava/actions/workflows/build-natives.yml) [![Tests: Linux on arm64](https://img.shields.io/circleci/build/github/gudzpoz/luajava/main?label=Linux%20on%20arm64)](https://app.circleci.com/pipelines/github/gudzpoz/luajava)