Test_Simplelines - Augeas Documentation

# Test_Simplelines

Provides unit tests and examples for the Simplelines lens.

Summary

Test_Simplelines | Provides unit tests and examples for the Simplelines lens.
Augeas Variables |
conf |
Augeas Tests |
Simplelines.lns |
Augeas Variables |
cronallow |
Augeas Tests |
cron.allow file |

### Augeas Variables

### conf

> let conf = "# This is a comment word a line indented line with $péci@l cH@r2ct3rs "

### Augeas Tests

### Simplelines.lns

> test Simplelines.lns get conf = { "#comment" = "This is a comment" } { } { "1" = "word" } { "2" = "a line" } { "3" = "indented line" } { "4" = "with $péci@l cH@r2ct3rs" }

### Augeas Variables

### cronallow

> let cronallow = "# Test comment # user1 another user2 "

### Augeas Tests

### cron.allow file

Parses simple lines conffiles

> let conf = "# This is a comment word a line indented line with $péci@l cH@r2ct3rs "

> test Simplelines.lns get conf = { "#comment" = "This is a comment" } { } { "1" = "word" } { "2" = "a line" } { "3" = "indented line" } { "4" = "with $péci@l cH@r2ct3rs" }

> let cronallow = "# Test comment # user1 another user2 "

Close