run.smt.ktest.table.TableTesting.kt Maven / Gradle / Ivy
package run.smt.ktest.table
fun headers(a: String) = Headers1(a)
fun headers(a: String, b: String) = Headers2(a, b)
fun headers(a: String, b: String, c: String) = Headers3(a, b, c)
fun headers(a: String, b: String, c: String, d: String) = Headers4(a, b, c, d)
fun headers(a: String, b: String, c: String, d: String, e: String) = Headers5(a, b, c, d, e)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String) = Headers6(a, b, c, d, e, f)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String) = Headers7(a, b, c, d, e, f, g)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String) = Headers8(a, b, c, d, e, f, g, h)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String) = Headers9(a, b, c, d, e, f, g, h, i)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String) = Headers10(a, b, c, d, e, f, g, h, i, j)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String) = Headers11(a, b, c, d, e, f, g, h, i, j, k)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String) = Headers12(a, b, c, d, e, f, g, h, i, j, k, l)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String) = Headers13(a, b, c, d, e, f, g, h, i, j, k, l, m)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String) = Headers14(a, b, c, d, e, f, g, h, i, j, k, l, m, n)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String) = Headers15(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String, p: String) = Headers16(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String, p: String, q: String) = Headers17(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String, p: String, q: String, r: String) = Headers18(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String, p: String, q: String, r: String, s: String) = Headers19(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String, p: String, q: String, r: String, s: String, t: String) = Headers20(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String, p: String, q: String, r: String, s: String, t: String, u: String) = Headers21(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)
fun headers(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String, p: String, q: String, r: String, s: String, t: String, u: String, v: String) = Headers22(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)
fun row(a: A) = Row1(a)
fun row(a: A, b: B) = Row2(a, b)
fun row(a: A, b: B, c: C) = Row3(a, b, c)
fun row(a: A, b: B, c: C, d: D) = Row4(a, b, c, d)
fun row(a: A, b: B, c: C, d: D, e: E) = Row5(a, b, c, d, e)
fun row(a: A, b: B, c: C, d: D, e: E, f: F) = Row6(a, b, c, d, e, f)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G) = Row7(a, b, c, d, e, f, g)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H) = Row8(a, b, c, d, e, f, g, h)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I) = Row9(a, b, c, d, e, f, g, h, i)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J) = Row10(a, b, c, d, e, f, g, h, i, j)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K) = Row11(a, b, c, d, e, f, g, h, i, j, k)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L) = Row12(a, b, c, d, e, f, g, h, i, j, k, l)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M) = Row13(a, b, c, d, e, f, g, h, i, j, k, l, m)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N) = Row14(a, b, c, d, e, f, g, h, i, j, k, l, m, n)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O) = Row15(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P) = Row16(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q) = Row17(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R) = Row18(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S) = Row19(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S, t: T) = Row20(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S, t: T, u: U) = Row21(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)
fun row(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S, t: T, u: U, v: V) = Row22(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)
fun table(headers: Headers1, vararg rows: Row1) = Table1(headers, rows.asList())
fun table(headers: Headers2, vararg rows: Row2) = Table2(headers, rows.asList())
fun table(headers: Headers3, vararg rows: Row3) = Table3(headers, rows.asList())
fun table(headers: Headers4, vararg rows: Row4) = Table4(headers, rows.asList())
fun table(headers: Headers5, vararg rows: Row5) = Table5(headers, rows.asList())
fun table(headers: Headers6, vararg rows: Row6) = Table6(headers, rows.asList())
fun table(headers: Headers7, vararg rows: Row7) = Table7(headers, rows.asList())
fun table(headers: Headers8, vararg rows: Row8) = Table8(headers, rows.asList())
fun table(headers: Headers9, vararg rows: Row9) = Table9(headers, rows.asList())
fun table(headers: Headers10, vararg rows: Row10) = Table10(headers, rows.asList())
fun table(headers: Headers11, vararg rows: Row11) = Table11(headers, rows.asList())
fun table(headers: Headers12, vararg rows: Row12) = Table12(headers, rows.asList())
fun table(headers: Headers13, vararg rows: Row13) = Table13(headers, rows.asList())
fun table(headers: Headers14, vararg rows: Row14) = Table14(headers, rows.asList())
fun table(headers: Headers15, vararg rows: Row15) = Table15(headers, rows.asList())
fun table(headers: Headers16, vararg rows: Row16) = Table16(headers, rows.asList())
fun table(headers: Headers17, vararg rows: Row17) = Table17(headers, rows.asList())
fun table(headers: Headers18, vararg rows: Row18) = Table18(headers, rows.asList())
fun table(headers: Headers19, vararg rows: Row19) = Table19(headers, rows.asList())
fun table(headers: Headers20, vararg rows: Row20) = Table20(headers, rows.asList())
fun table(headers: Headers21, vararg rows: Row21) = Table21(headers, rows.asList())
fun table(headers: Headers22, vararg rows: Row22) = Table22(headers, rows.asList())
fun error(e: AssertionError, headers: List, values: List<*>): AssertionError {
val params = headers.zip(values).joinToString(", ")
return AssertionError("Test failed for $params with error ${e.message}")
}
fun error(headers: List, values: List<*>): AssertionError {
val params = headers.zip(values).joinToString(", ")
return AssertionError("Test passed for $params but expected failure")
}
fun forAll(table: Table1, fn: (A) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table2, fn: (A, B) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table3, fn: (A, B, C) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table4, fn: (A, B, C, D) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table5, fn: (A, B, C, D, E) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table6, fn: (A, B, C, D, E, F) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table7, fn: (A, B, C, D, E, F, G) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table8, fn: (A, B, C, D, E, F, G, H) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table9, fn: (A, B, C, D, E, F, G, H, I) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table10, fn: (A, B, C, D, E, F, G, H, I, J) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table11, fn: (A, B, C, D, E, F, G, H, I, J, K) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table12, fn: (A, B, C, D, E, F, G, H, I, J, K, L) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table13, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table14, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table15, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table16, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table17, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table18, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table19, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table20, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s, row.t)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table21, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s, row.t, row.u)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forAll(table: Table22, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s, row.t, row.u, row.v)
} catch (e: AssertionError) {
throw error(e, table.headers.values(), row.values())
}
}
}
fun forNone(table: Table1, fn: (A) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table2, fn: (A, B) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table3, fn: (A, B, C) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table4, fn: (A, B, C, D) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table5, fn: (A, B, C, D, E) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table6, fn: (A, B, C, D, E, F) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table7, fn: (A, B, C, D, E, F, G) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table8, fn: (A, B, C, D, E, F, G, H) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table9, fn: (A, B, C, D, E, F, G, H, I) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table10, fn: (A, B, C, D, E, F, G, H, I, J) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table11, fn: (A, B, C, D, E, F, G, H, I, J, K) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table12, fn: (A, B, C, D, E, F, G, H, I, J, K, L) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table13, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table14, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table15, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table16, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table17, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table18, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table19, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table20, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s, row.t)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table21, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s, row.t, row.u)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
fun forNone(table: Table22, fn: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V) -> Unit): Unit {
for (row in table.rows) {
try {
fn(row.a, row.b, row.c, row.d, row.e, row.f, row.g, row.h, row.i, row.j, row.k, row.l, row.m, row.n, row.o, row.p, row.q, row.r, row.s, row.t, row.u, row.v)
throw error(table.headers.values(), row.values())
} catch (e: AssertionError) {
}
}
}
data class Table1(val headers: Headers1, val rows: List>)
data class Table2(val headers: Headers2, val rows: List>)
data class Table3(val headers: Headers3, val rows: List>)
data class Table4(val headers: Headers4, val rows: List>)
data class Table5(val headers: Headers5, val rows: List>)
data class Table6(val headers: Headers6, val rows: List>)
data class Table7(val headers: Headers7, val rows: List>)
data class Table8(val headers: Headers8, val rows: List>)
data class Table9(val headers: Headers9, val rows: List>)
data class Table10(val headers: Headers10, val rows: List>)
data class Table11(val headers: Headers11, val rows: List>)
data class Table12(val headers: Headers12, val rows: List>)
data class Table13(val headers: Headers13, val rows: List>)
data class Table14(val headers: Headers14, val rows: List>)
data class Table15(val headers: Headers15, val rows: List>)
data class Table16(val headers: Headers16, val rows: List>)
data class Table17(val headers: Headers17, val rows: List>)
data class Table18(val headers: Headers18, val rows: List>)
data class Table19(val headers: Headers19, val rows: List>)
data class Table20(val headers: Headers20, val rows: List>)
data class Table21(val headers: Headers21, val rows: List>)
data class Table22(val headers: Headers22, val rows: List>)
data class Headers1(val labelA: String) {
fun values() = listOf(labelA)
}
data class Headers2(val labelA: String, val labelB: String) {
fun values() = listOf(labelA, labelB)
}
data class Headers3(val labelA: String, val labelB: String, val labelC: String) {
fun values() = listOf(labelA, labelB, labelC)
}
data class Headers4(val labelA: String, val labelB: String, val labelC: String, val labelD: String) {
fun values() = listOf(labelA, labelB, labelC, labelD)
}
data class Headers5(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE)
}
data class Headers6(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF)
}
data class Headers7(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG)
}
data class Headers8(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH)
}
data class Headers9(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI)
}
data class Headers10(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ)
}
data class Headers11(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK)
}
data class Headers12(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL)
}
data class Headers13(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM)
}
data class Headers14(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN)
}
data class Headers15(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO)
}
data class Headers16(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String, val labelP: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO, labelP)
}
data class Headers17(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String, val labelP: String, val labelQ: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO, labelP, labelQ)
}
data class Headers18(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String, val labelP: String, val labelQ: String, val labelR: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO, labelP, labelQ, labelR)
}
data class Headers19(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String, val labelP: String, val labelQ: String, val labelR: String, val labelS: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO, labelP, labelQ, labelR, labelS)
}
data class Headers20(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String, val labelP: String, val labelQ: String, val labelR: String, val labelS: String, val labelT: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO, labelP, labelQ, labelR, labelS, labelT)
}
data class Headers21(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String, val labelP: String, val labelQ: String, val labelR: String, val labelS: String, val labelT: String, val labelU: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO, labelP, labelQ, labelR, labelS, labelT, labelU)
}
data class Headers22(val labelA: String, val labelB: String, val labelC: String, val labelD: String, val labelE: String, val labelF: String, val labelG: String, val labelH: String, val labelI: String, val labelJ: String, val labelK: String, val labelL: String, val labelM: String, val labelN: String, val labelO: String, val labelP: String, val labelQ: String, val labelR: String, val labelS: String, val labelT: String, val labelU: String, val labelV: String) {
fun values() = listOf(labelA, labelB, labelC, labelD, labelE, labelF, labelG, labelH, labelI, labelJ, labelK, labelL, labelM, labelN, labelO, labelP, labelQ, labelR, labelS, labelT, labelU, labelV)
}
data class Row1(val a: A) {
fun values() = listOf(a)
}
data class Row2(val a: A, val b: B) {
fun values() = listOf(a, b)
}
data class Row3(val a: A, val b: B, val c: C) {
fun values() = listOf(a, b, c)
}
data class Row4(val a: A, val b: B, val c: C, val d: D) {
fun values() = listOf(a, b, c, d)
}
data class Row5(val a: A, val b: B, val c: C, val d: D, val e: E) {
fun values() = listOf(a, b, c, d, e)
}
data class Row6(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F) {
fun values() = listOf(a, b, c, d, e, f)
}
data class Row7(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G) {
fun values() = listOf(a, b, c, d, e, f, g)
}
data class Row8(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H) {
fun values() = listOf(a, b, c, d, e, f, g, h)
}
data class Row9(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I) {
fun values() = listOf(a, b, c, d, e, f, g, h, i)
}
data class Row10(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j)
}
data class Row11(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k)
}
data class Row12(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l)
}
data class Row13(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m)
}
data class Row14(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n)
}
data class Row15(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
}
data class Row16(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O, val p: P) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
}
data class Row17(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O, val p: P, val q: Q) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)
}
data class Row18(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O, val p: P, val q: Q, val r: R) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)
}
data class Row19(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O, val p: P, val q: Q, val r: R, val s: S) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)
}
data class Row20(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O, val p: P, val q: Q, val r: R, val s: S, val t: T) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
}
data class Row21(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O, val p: P, val q: Q, val r: R, val s: S, val t: T, val u: U) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)
}
data class Row22(val a: A, val b: B, val c: C, val d: D, val e: E, val f: F, val g: G, val h: H, val i: I, val j: J, val k: K, val l: L, val m: M, val n: N, val o: O, val p: P, val q: Q, val r: R, val s: S, val t: T, val u: U, val v: V) {
fun values() = listOf(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)
}