(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestColumnsValueConverter(t *testing.T) { |
| 8 | tests := []struct { |
| 9 | name string |
| 10 | coverageValue string |
| 11 | expect string |
| 12 | }{ |
| 13 | // assertThat(UnistrHelper.convert("UNISTR('\\0412\\044B')")).isEqualTo("Вы"); |
| 14 | |
| 15 | // // Concatenated values, using differing spacing techniques to validate behavior |
| 16 | // assertThat(UnistrHelper.convert("UNISTR('\\0412\\044B') || UNISTR('\\0431\\0443')")).isEqualTo("Выбу"); |
| 17 | // assertThat(UnistrHelper.convert("UNISTR('\\0412\\044B')||UNISTR('\\0431\\0443')")).isEqualTo("Выбу"); |
| 18 | // assertThat(UnistrHelper.convert("UNISTR('\\0412\\044B') ||UNISTR('\\0431\\0443')")).isEqualTo("Выбу"); |
| 19 | // assertThat(UnistrHelper.convert("UNISTR('\\0412\\044B')|| UNISTR('\\0431\\0443')")).isEqualTo("Выбу"); |
| 20 | // assertThat(UnistrHelper.convert("UNISTR('\\0412\\044B')|| UNISTR('\\0431\\0443')")).isEqualTo("Выбу"); |
| 21 | // assertThat(UnistrHelper.convert("UNISTR('\\0412\\044B') || UNISTR('\\0431\\0443')")).isEqualTo("Выбу"); |
| 22 | { |
| 23 | name: "UNISTR", |
| 24 | coverageValue: `UNISTR(\\0412\\044B) ||UNISTR(\\0431\\0443)`, |
| 25 | expect: `Выбу`, |
| 26 | }, |
| 27 | { |
| 28 | name: "UNISTR", |
| 29 | coverageValue: `UNISTR(\\6570\\636E\\5E93\\6D4B\\8BD5)`, |
| 30 | expect: `数据库测试`, |
| 31 | }, |
| 32 | } |
| 33 | |
| 34 | for _, tt := range tests { |
| 35 | t.Run(tt.name, func(t *testing.T) { |
| 36 | actal := columnsValueConverter(tt.coverageValue) |
| 37 | if actal != tt.expect { |
| 38 | t.Errorf("UNISTR() actal %v, expect %v", actal, tt.expect) |
| 39 | } |
| 40 | }) |
| 41 | |
| 42 | } |
| 43 | |
| 44 | } |
nothing calls this directly
no test coverage detected