MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Test_Mod

Function Test_Mod

testing/generation/function_coverage/output/mod_test.go:23–1832  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21)
22
23func Test_Mod(t *testing.T) {
24 RunScripts(t, []ScriptTest{
25 {
26 Name: "mod",
27 Assertions: []ScriptTestAssertion{
28 {
29 Query: "SELECT mod( 0::int8 , 0::int8 ) ;",
30 ExpectedErr: true,
31 },
32 {
33 Query: "SELECT mod( -1::int8 , 0::int8 ) ;",
34 ExpectedErr: true,
35 },
36 {
37 Query: "SELECT mod( 1::int8 , 0::int8 ) ;",
38 ExpectedErr: true,
39 },
40 {
41 Query: "SELECT mod( 2::int8 , 0::int8 ) ;",
42 ExpectedErr: true,
43 },
44 {
45 Query: "SELECT mod( -2::int8 , 0::int8 ) ;",
46 ExpectedErr: true,
47 },
48 {
49 Query: "SELECT mod( 5::int8 , 0::int8 ) ;",
50 ExpectedErr: true,
51 },
52 {
53 Query: "SELECT mod( 10::int8 , 0::int8 ) ;",
54 ExpectedErr: true,
55 },
56 {
57 Query: "SELECT mod( -10::int8 , 0::int8 ) ;",
58 ExpectedErr: true,
59 },
60 {
61 Query: "SELECT mod( 1000::int8 , 0::int8 ) ;",
62 ExpectedErr: true,
63 },
64 {
65 Query: "SELECT mod( 2105076::int8 , 0::int8 ) ;",
66 ExpectedErr: true,
67 },
68 {
69 Query: "SELECT mod( 100000000::int8 , 0::int8 ) ;",
70 ExpectedErr: true,
71 },
72 {
73 Query: "SELECT mod( -5184226581::int8 , 0::int8 ) ;",
74 ExpectedErr: true,
75 },
76 {
77 Query: "SELECT mod( 8525267290::int8 , 0::int8 ) ;",
78 ExpectedErr: true,
79 },
80 {

Callers

nothing calls this directly

Calls 2

RunScriptsFunction · 0.70
NumericFunction · 0.70

Tested by

no test coverage detected