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

Function Test_Div

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

RunScriptsFunction · 0.70
NumericFunction · 0.70

Tested by

no test coverage detected