Skip to content

Commit 20a08ba

Browse files
committed
Init.
0 parents  commit 20a08ba

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

lib/built_value.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright (c) 2015, Google Inc. Please see the AUTHORS file for details.
2+
// All rights reserved. Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
library built_value;
5+
6+
part 'src/built_value.dart';

lib/src/built_value.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
part of built_value;

pubspec.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: built_value
2+
version: 0.0.1
3+
description: >
4+
Code generation supporting value types with builders.
5+
authors:
6+
- David Morgan <[email protected]>
7+
homepage: https://github.com/google/built-value-dart
8+
dependencies:
9+
source_gen: '>=0.3.0'
10+
dev_dependencies:
11+
unittest: '>=0.10.0'

test/all_tests.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) 2015, Google Inc. Please see the AUTHORS file for details.
2+
// All rights reserved. Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
library built_value.test.all_tests;
6+
7+
import 'built_value_test.dart' as built_value_test;
8+
9+
void main() {
10+
built_value_test.main();
11+
}

test/built_value_test.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) 2015, Google Inc. Please see the AUTHORS file for details.
2+
// All rights reserved. Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
library built_value.built_value_test;
6+
7+
import 'package:built_value/built_value.dart';
8+
import 'package:unittest/unittest.dart';
9+
10+
void main() {
11+
group('BuiltValue', () {
12+
test('has a method like Iterable.skipWhile that updates in place', () {
13+
expect(
14+
(new SetBuilder<int>([1, 2])..skipWhile((x) => x == 1)).build(), [2]);
15+
});
16+
});
17+
}

0 commit comments

Comments
 (0)