Skip to content

Commit

Permalink
tests: Extend "fastvapi" test to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ricotz committed Apr 23, 2020
1 parent da4cba7 commit 71af8d6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
10 changes: 9 additions & 1 deletion tests/fastvapi/fastvapitest.vala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace FastVapi {

public weak Test weak_property { get; private set; }

public Test () {
public Test.sub () {
}

public void method () {
Expand All @@ -48,4 +48,12 @@ namespace FastVapi {
VALUE = 3,
VALUE_TWO = VALUE,
}

public class TestFundamental {
private TestFundamental () {
}
}

public abstract class AbstractTest {
}
}
12 changes: 11 additions & 1 deletion tests/fastvapi/fastvapitest.vapi-expected
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,26 @@ namespace FastVapi {
[Source (filename = "fastvapitest.vala", line = 28, column = 3)]
public weak Test weak_field;
[Source (filename = "fastvapitest.vala", line = 34, column = 3)]
public Test ();
public Test.sub ();
[Source (filename = "fastvapitest.vala", line = 37, column = 3)]
public void method ();
[Source (filename = "fastvapitest.vala", line = 23, column = 2)]
public Test ();
[Source (filename = "fastvapitest.vala", line = 30, column = 3)]
public string property { get; set construct; }
[Source (filename = "fastvapitest.vala", line = 32, column = 3)]
public weak Test weak_property { get; private set; }
[Source (filename = "fastvapitest.vala", line = 24, column = 3)]
public signal void some_signal (int param);
}
[Source (filename = "fastvapitest.vala", line = 52, column = 2)]
public class TestFundamental {
}
[Source (filename = "fastvapitest.vala", line = 57, column = 2)]
public abstract class AbstractTest {
[Source (filename = "fastvapitest.vala", line = 57, column = 2)]
protected AbstractTest ();
}
[Source (filename = "fastvapitest.vala", line = 16, column = 2)]
public interface InterfaceTest : Object {
[Source (filename = "fastvapitest.vala", line = 18, column = 3)]
Expand Down

0 comments on commit 71af8d6

Please sign in to comment.