push
appveyor
2069 of 2069 new or added lines in 354 files covered. (100.0%)
13434 of 18317 relevant lines covered (73.34%)
1624.38 hits per line
1 |
// Licensed to the .NET Foundation under one or more agreements. |
|
2 |
// The .NET Foundation licenses this file to you under the MIT license.
|
|
3 |
// See the LICENSE file in the project root for more information.
|
|
4 |
|
|
5 |
using System;
|
|
6 |
using System.Diagnostics;
|
|
7 |
|
|
8 |
namespace Cake.Core.IO.Globbing.Nodes
|
|
9 |
{ |
|
10 |
[DebuggerDisplay("{Drive,nq}:")]
|
|
11 |
internal sealed class WindowsRoot : GlobNode |
|
12 |
{ |
|
|
public string Drive { get; } |
6 all except ✔ |
14 |
|
|
15 |
public WindowsRoot(string drive) |
6 all except ✔ |
16 |
{ |
6 all except ✔ |
17 |
if (drive == null)
|
6 all except ✔ |
18 |
{ |
× |
|
throw new ArgumentNullException(nameof(drive)); |
× |
20 |
} |
|
|
Drive = drive; |
6 all except ✔ |
22 |
} |
6 all except ✔ |
23 |
|
|
24 |
[DebuggerStepThrough] |
|
25 |
public override void Accept(GlobVisitor visitor, GlobVisitorContext context) |
|
26 |
{ |
6 all except ✔ |
27 |
visitor.VisitWindowsRoot(this, context);
|
6 all except ✔ |
28 |
} |
6 all except ✔ |
29 |
} |
|
30 |
} |