MCPcopy Index your code
hub / github.com/apache/devlake / TestNullStringFlow

Function TestNullStringFlow

backend/helpers/e2ehelper/null_string_test.go:50–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48 return "null_string_tests"
49}
50func TestNullStringFlow(t *testing.T) {
51 //var plugin impl.Jira
52 dataflowTester := NewDataFlowTester(t, "", nil)
53 dir, err := os.MkdirTemp("", "testnullstring")
54 if err != nil {
55 panic(err)
56 }
57 // nolint
58 defer os.RemoveAll(dir)
59
60 // verify changelog conversion
61 dataflowTester.ImportCsvIntoTabler("./testdata/issue_changelogs.csv", &nullStringTest{})
62 dataflowTester.CreateSnapshot(
63 &nullStringTest{},
64 TableOptions{
65 CSVRelPath: filepath.Join(dir, "issue_changelogs_null_string.csv"),
66 TargetFields: ColumnWithRawData(
67 "id",
68 "issue_id",
69 "author_id",
70 "author_name",
71 "field_id",
72 "field_name",
73 "original_from_value",
74 "original_to_value",
75 "from_value",
76 "to_value",
77 "created_date",
78 "_raw_data_params",
79 "_raw_data_table",
80 "_raw_data_id",
81 "_raw_data_remark",
82 ),
83 },
84 )
85}

Callers

nothing calls this directly

Calls 4

ImportCsvIntoTablerMethod · 0.95
CreateSnapshotMethod · 0.95
NewDataFlowTesterFunction · 0.85
ColumnWithRawDataFunction · 0.85

Tested by

no test coverage detected