# sUNC

> Rove's live sUNC score, what the test suite measures and how Rove's API maps onto it.
> Rove documentation: https://docs.rove.wtf/sunc

sUNC is the community test suite for executor APIs. It runs a set of tests inside the executor: does `hookfunction` really replace a function everywhere, does `getconnections` return working connection objects, does `cloneref` return a distinct reference to the same instance. It reports how many pass. A test checks behaviour, not just that a name exists.

Live score at build time: **96.51%**, 83 of 86 tests (sUNC 2.1.5, executor rove 1.00, tested 2026-11-19). Full report: https://r.sunc.su/Nf07BOkppQ. Current score as JSON: https://rove.wtf/api/sunc

## What it covers

The tests are grouped the same way the [executor API](https://docs.rove.wtf/executor) is:

| Area | Examples it checks |
|---|---|
| Closures | `hookfunction`, `newcclosure`, `iscclosure`, `clonefunction`, `checkcaller` |
| Metatables | `getrawmetatable`, `hookmetamethod`, `getnamecallmethod`, `setreadonly` |
| Debug | `getconstants`, `getupvalues`, `getprotos`, `getstack`, `getinfo` |
| Environment | `getgenv`, `getrenv`, `getsenv`, `getgc`, `filtergc` |
| Instances | `getinstances`, `getnilinstances`, `cloneref`, `gethiddenproperty`, `fireclickdetector` |
| Signals | `getconnections`, `firesignal`, `replicatesignal` |
| Scripts | `getscriptbytecode`, `getscripthash`, `decompile`, `getrunningscripts` |
| Files | `writefile`, `readfile`, `listfiles`, `getcustomasset` |
| Crypt | `crypt.encrypt`, `crypt.hash`, base64, `lz4` |
| Drawing | `Drawing.new`, render properties, `cleardrawcache` |
| WebSocket | `WebSocket.connect` and its events |

## How Rove gets there

Rove's executor functions are real implementations, not stubs that return plausible values:

- **Closure functions work inside the Luau VM.** They're written in C++ next to it: `hookfunction` re-routes or rewrites the target in place, so every existing reference sees the hook.
- **The VM is the official one.** It's the same Luau as Roblox's (bytecode versions 13–14), so introspection like `getconstants` and `getprotos` sees real bytecode.
- **Instance functions reach every instance.** They read Rove's world store directly, including instances no script has touched yet.
- **Signals are real objects.** `getconnections` returns connections you can disable, fire and disconnect, including ones held by Actor VMs.

A score is a snapshot of one run on one version, and a test can fail for an edge case while the function works for everyday use. The live report linked above lists each test.

## Running it yourself

Load the sUNC script in any Rove client from **Execute**. It prints its progress and a report link at the end. It needs `loadstring` and `HttpGet`, which Rove provides.
