mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-06 03:14:12 +08:00
This commit is contained in:
1 parent
c7bafc635d
commit
c71da84035
264 files changed
+8169
-3944
No files matched your search
@@ -5,7 +5,7 @@
|
||||
// appflow browser-half suite.
|
||||
//
|
||||
// WHY THIS FILE EXISTS. Every defect this package's frontend has had was found
|
||||
// by a human or a review panel READING the code. Not one was found by a test,
|
||||
// by a reviewer READING the code. Not one was found by a test,
|
||||
// because until now no test could run any of it. The daemon has 54 checks
|
||||
// against it and the JavaScript had none, which is backwards: the daemon
|
||||
// mostly counts bytes, while the frontend is what decides whether an operator
|
||||
|
||||
@@ -155,7 +155,7 @@ test_conservation() {
|
||||
# A 38-flow event-socket capture had seen none, which at that rate has an
|
||||
# expected count of 0.4 -- so the sample was far too small to support the
|
||||
# "netifyd never does this" conclusion that was briefly drawn from it, and
|
||||
# the review panel that reported the byte loss was right.
|
||||
# the review that reported the byte loss was right.
|
||||
#
|
||||
# What is worth watching is the RATE. A sudden jump means netifyd's event
|
||||
# contract has shifted; zero across a busy run means this path stopped
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// functions can be tested without a browser.
|
||||
//
|
||||
// WHY THIS EXISTS. Every browser-side defect this package has had was found by
|
||||
// a human or a review panel reading the code. Not one was found by a test,
|
||||
// a reviewer reading the code. Not one was found by a test,
|
||||
// because no test could run any of it: LuCI view files are not CommonJS or ES
|
||||
// modules, they are evaluated by LuCI's own loader with the `'require x';`
|
||||
// directives intercepted. So the JavaScript half of a package whose entire
|
||||
@@ -73,7 +73,7 @@ function stripRequires(src) {
|
||||
// run of a suite that asserted exactly those outputs. Loading the module a
|
||||
// second time with a marking translator makes the two observationally
|
||||
// different, and equality assertions become sound again rather than
|
||||
// coincidentally true. Raised by a review panel, 2026-08-30.
|
||||
// coincidentally true. Raised in review, 2026-08-30.
|
||||
function load(file, stubs, opts) {
|
||||
const translate = (opts && opts.translate) || ((s) => s);
|
||||
const src = fs.readFileSync(file, 'utf8');
|
||||
|
||||
@@ -794,7 +794,7 @@ test_hostile() {
|
||||
feed_and_settle || return
|
||||
|
||||
# THIS RUNTIME CHECK BINDS NOTHING TODAY, AND THE STATIC ONE BELOW IS THE
|
||||
# REAL GUARD. A review panel converged on this and it was right.
|
||||
# REAL GUARD. Reviewers converged on this and they were right.
|
||||
#
|
||||
# The canary cannot be turned red by any edit that leaves appflowd doing
|
||||
# what it does, because appflowd never invokes a shell. The only edits that
|
||||
|
||||
Reference in new issue
Block a user