Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
16fd9ba9
Commit
16fd9ba9
authored
Oct 17, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: more tests for `git_win32_remove_path`
parent
b2e85f98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
tests/path/win32.c
+28
-0
No files found.
tests/path/win32.c
View file @
16fd9ba9
...
@@ -163,7 +163,35 @@ static void test_remove_namespace(const wchar_t *in, const wchar_t *expected)
...
@@ -163,7 +163,35 @@ static void test_remove_namespace(const wchar_t *in, const wchar_t *expected)
void
test_path_win32__remove_namespace
(
void
)
void
test_path_win32__remove_namespace
(
void
)
{
{
test_remove_namespace
(
L"
\\\\
?
\\
C:
\\
Temp
\\
Foo"
,
L"C:
\\
Temp
\\
Foo"
);
test_remove_namespace
(
L"
\\\\
?
\\
C:
\\
"
,
L"C:
\\
"
);
test_remove_namespace
(
L"
\\\\
?
\\
"
,
L""
);
test_remove_namespace
(
L"
\\
??
\\
C:
\\
Temp
\\
Foo"
,
L"C:
\\
Temp
\\
Foo"
);
test_remove_namespace
(
L"
\\
??
\\
C:
\\
"
,
L"C:
\\
"
);
test_remove_namespace
(
L"
\\
??
\\
"
,
L""
);
test_remove_namespace
(
L"
\\\\
?
\\
UNC
\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
test_remove_namespace
(
L"
\\\\
?
\\
UNC
\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
test_remove_namespace
(
L"
\\\\
?
\\
UNC
\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
test_remove_namespace
(
L"
\\\\
?
\\
UNC
\\
server
\\
C$"
,
L"
\\\\
server
\\
C$"
);
test_remove_namespace
(
L"
\\\\
?
\\
UNC
\\
server
\\
"
,
L"
\\\\
server"
);
test_remove_namespace
(
L"
\\\\
?
\\
UNC
\\
server"
,
L"
\\\\
server"
);
test_remove_namespace
(
L"
\\
??
\\
UNC
\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
test_remove_namespace
(
L"
\\
??
\\
UNC
\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
test_remove_namespace
(
L"
\\
??
\\
UNC
\\
server
\\
C$"
,
L"
\\\\
server
\\
C$"
);
test_remove_namespace
(
L"
\\
??
\\
UNC
\\
server
\\
"
,
L"
\\\\
server"
);
test_remove_namespace
(
L"
\\
??
\\
UNC
\\
server"
,
L"
\\\\
server"
);
test_remove_namespace
(
L"
\\\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
test_remove_namespace
(
L"
\\\\
server
\\
C$"
,
L"
\\\\
server
\\
C$"
);
test_remove_namespace
(
L"
\\\\
server
\\
"
,
L"
\\\\
server"
);
test_remove_namespace
(
L"
\\\\
server"
,
L"
\\\\
server"
);
test_remove_namespace
(
L"C:
\\
Foo
\\
Bar"
,
L"C:
\\
Foo
\\
Bar"
);
test_remove_namespace
(
L"C:
\\
"
,
L"C:
\\
"
);
test_remove_namespace
(
L""
,
L""
);
}
}
void
test_path_win32__canonicalize
(
void
)
void
test_path_win32__canonicalize
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment