Commit 9530d46
refactor: tests を diffx-cli に移動、.gitignore を Rust 専用に簡素化
## 構造の整理
- tests/ を diffx-cli/tests/ に移動
- すべてのテストが diffx CLI バイナリをテストしているため
- ワークスペース全体の統合テストではなかった
- diffx-cli に属するべきテスト
- Cargo.toml 修正
- テストパスを `../tests/` から `tests/` に変更
- 正しくビルドできるように
- tests/lib.rs 簡素化
- 存在しないモジュール(core, basic, formats, errors, features)を削除
- 実際に存在する3つのモジュールのみ残す(cli, docs_examples, integration)
## .gitignore の簡素化
- Node.js 関連の設定を削除(86-97行)
- Python 関連の設定を削除(98-116行)
- lawkit/benf など他プロジェクトの痕跡を削除
- Rust 専用リポジトリに適した内容に
理由:
- diffx は Rust 専用リポジトリ
- diffx-js と diffx-python は別リポジトリに分離済み
## 構造の明確化
Before:
```
diffx/
├── Cargo.toml (workspace)
├── diffx-core/
├── diffx-cli/
└── tests/ ← 束ねた位置にあるが、実際は CLI のテストのみ
```
After:
```
diffx/
├── Cargo.toml (workspace のみ)
├── diffx-core/ (独自のテストを持つ)
└── diffx-cli/ (独自のテストを持つ)
└── tests/ ← CLI のテスト
```
各クレートが独自のテストを持ち、ワークスペースルートはシンプルに。
🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>1 parent 3166c96 commit 9530d46
88 files changed
Lines changed: 19 additions & 115 deletions
File tree
- diffx-cli
- tests
- cli
- docs_examples
- fixtures
- dir1
- subdir
- dir2
- subdir
- integration
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 57 | | |
66 | 58 | | |
67 | 59 | | |
| |||
71 | 63 | | |
72 | 64 | | |
73 | 65 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 66 | | |
78 | 67 | | |
79 | 68 | | |
80 | 69 | | |
81 | 70 | | |
82 | 71 | | |
83 | 72 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 73 | | |
121 | 74 | | |
122 | 75 | | |
| |||
134 | 87 | | |
135 | 88 | | |
136 | 89 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 90 | | |
170 | 91 | | |
171 | 92 | | |
172 | 93 | | |
173 | | - | |
| 94 | + | |
| 95 | + | |
174 | 96 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments